Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Field values in SCX
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00857255
Message ID:
00857490
Vues:
24
> As far as the timestamp goes, I have two methods which convert to/from
> timestamp and date-time values. If you're interested, send me a private mail.

Hehe, why the secrecy? ;-) The timestamps are DOS datetime format, plain and simple. There is ample documentation for this format available and plenty of functions that support it (including the Win32 API). But rolling one's own in Fox isn't all that hard unless one wants to support oldies like VFP5 etc.:
function DosT2FoxT (nDosDateTime)
   return iif(empty(m.nDosDateTime), ;
         {--::}, ;
         datetime( ;
               bitand(bitrshift(m.nDosDateTime, 25), Ox7F) + 1980, ;
               bitand(bitrshift(m.nDosDateTime, 21), Ox0F), ; 
               bitand(bitrshift(m.nDosDateTime, 16), Ox1F), ;
               bitand(bitrshift(m.nDosDateTime, 11), Ox1F), ;
               bitand(bitrshift(m.nDosDateTime,  5), Ox3F), ;
               bitand(          m.nDosDateTime     , Ox1F) * 2  )  )
Also, a largish portion of the SCX format is documented in HOME()+"Tools\FileSpec\". But I agree with DF, letting Fox handle the low-level stuff is easier & cleaner.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform