Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DateTime stamp.
Message
General information
Forum:
Visual FoxPro
Category:
User groups
Title:
Miscellaneous
Thread ID:
00098442
Message ID:
00098446
Views:
24
>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.

I know of another similar function (I can't remember what it was) and this function stored the seconds as seconds/2 so in that case you multiply the seconds by two. I would assume that this is the same.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform