Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DateTime stamp.
Message
From
11/05/1998 07:46:58
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
11/05/1998 05:39:59
General information
Forum:
Visual FoxPro
Category:
User groups
Title:
Miscellaneous
Thread ID:
00098442
Message ID:
00098449
Views:
25
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform