Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Over midnight causes bug
Message
 
To
04/07/2001 09:54:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00526579
Message ID:
00526717
Views:
20
Hi Hilmar,

I use it because it gives more precision than using DATETIME().

>While adding the Julian Date to seconds() should give correct results, I prefer the datetime() solution, for its simplicity.
>
>The Julian Date may be required for FoxPro 2.x, which doesn't have datetime-variables.
>
>Hilmar.
>
>>To avoid this I use:
>>
>>lnTime1 = VAL(SYS(1)) * 86400 + SECONDS()
>>* some process here
>>lnDiff = VAL(SYS(1)) * 86400 + SECONDS() - lnTime1
>>
>>This gives the maximum precision.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform