Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Decoding timestamp field in SCX
Message
De
02/09/1999 12:07:07
 
 
À
02/09/1999 11:07:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00260633
Message ID:
00260653
Vues:
15
Try this:
LPARAMETERS tnStamp

RETURN IIF(tnStamp = 0,;
   {//::},
   DateTime(1980 + BitAnd(BitRShift(tnStamp, 25), 63),
      BitAnd(BitRShift(tnStamp, 21), 15),;
      BitAnd(BitRShift(tnStamp, 16), 31),;
      BitAnd(BitRShift(tnStamp, 11), 31),;
      BitAnd(BitRShift(tnStamp, 5), 63),;
      BitAnd(BitLShift(tnStamp, 1), 15)))
HTH


>I would like to convert the value of the timestamp field in the SCX to a date/time value. Does anyone know how the timestamp is encoded?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform