Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datetime Storage
Message
 
To
13/10/2005 18:30:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01058915
Message ID:
01058936
Views:
10
>>For my own information, does anyone know the format of the storage of a datetime value in a table?
>>
>>I've look at this and can't discern how VFP is reading the value. It doesn't seem to be a FILETIME structure, nor a SYSTEMTIME structures.
>>
>>Any one know this?
>
>Hi George,
>It stores it as 2 integers. 1st part is Julian day number (sys(1)). 2nd part is milliseconds since midnight.

Cetin,

Thanks for the information. I'll look at that in the morning.

It does seem, however, that this wouldn't be the best way to do this. I realize that VFP datetime have a maximum resolution of one second. If they're two integers (WORDs) they're only 4 bytes. If they're two DWORDS, then they're 8 bytes. And if they're 8 bytes, then why not use a SYSTEMTIME structure? After all, it would make the functions like YEAR(), MONTH(), and DAY() faster.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform