Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TToBin()
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00924766
Message ID:
00924785
Views:
11
>Anyone know of a way to convert a datetime to a binary?
>
>A Datetime is stored as 8 bytes so I should be able to convert it to an 8 byte string and back again.
>
>Any ideas?
>
>Cheers,

Nick,

Look at my Windows Time programming (FILE#9738) in the download section. Date/times are stored by windows in two different structure types: the SYSTEMTIME structure and the FILETIME structure. The first is 16 bytes long and the second 8 bytes.

The programming above has conversion routines to and from these structures, as well as conversion routines for the VFP datetime data type. These routines utilize several API calls and are too length to post here.
George

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

Click here to load this message in the networking platform