TIP: Click on subject to list as thread! ANSI
echo: delphi
to: JOAQUIM HOMRIGHAUSEN
from: CARLOS SANCHEZ GARCIA
date: 1997-11-21 19:38:00
subject: D1: EncodeTime() / EncodeDate()

Hi Joaquim!
Mr. Joaquim Homrighausen wrote to Mr. All:
 JH>   Do the above two function retain other values in the TDateTime
 JH> return variable across calls? I mean, how would I go about encoding a
 JH> given date *and* time into a variable of TDateTime type?
    I don't remember the function sintax and I have not Delphi now, but I 
think it's as easy as this:
    MyDateTime := EncodeTime(MyTime) + EncodeDate(MyDate)
 If it is not this way what you just have to know is that a TDateTime 
variable is a real number whose integer part is the date (in days since a 
giveb date that I don't remember) and the rest (float part) is the encoded 
time.
 See you :)
--- FMail 1.02
---------------
* Origin: Edison's Temple BBS - Madrid (2:341/136.39)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.