Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Over midnight causes bug
Message
From
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:
00526670
Views:
18
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.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform