Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DateTime stamp.
Message
De
11/05/1998 07:46:58
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
11/05/1998 05:39:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Groupes d'usagers
Titre:
Divers
Thread ID:
00098442
Message ID:
00098449
Vues:
34
>I found function TIMESTMP in library FNKSHN.PRG. DateTime stamp foms by formula:
>(Y-1980)*2**25 + M*2**21 + D*2**16 + TH * 2**11 + TM*2**5 + TS
>where
> Y,M,D - year, month, day
> TH, TM, TS - hours, minutes, seconds.
>But 5 bit is only for 30 sec! What algorithm for reconstruction Date and Time.
Isn't datetime() good for that ? It stores datetime up to milliseconds accuracy in 8 bytes and also for stamping sys(2015) seem perfect.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform