Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TToBin()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00924766
Message ID:
00924785
Vues:
10
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform