Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Precision in DateTime Arithmetic
Message
From
01/12/2012 08:44:33
 
 
To
01/12/2012 07:11:18
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Miscellaneous
Thread ID:
01558431
Message ID:
01558535
Views:
51
>>It seems the datetime values don't hold milliseconds anymore.
>
>
>But the Date values hold seconds
>
>x= date()
>y = x + .5
>? x, y  && seem the same
>?x==y  && false
>?y-x  && 0
>?y+.5==date()+1 && true
>
We're out of design VFPT.
x= date()
? x + 43/86400==x && TRUE
? x + 44/86400==x && FALSE
Previous
Reply
Map
View

Click here to load this message in the networking platform