Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: int() returning wrong values from datetime operatio
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Miscellaneous
Thread ID:
01058678
Message ID:
01064265
Views:
54
Fred,

Yeah I ran into while working on a knitting mill system that did the data gathering in C and was giving me datetimes with milliseconds and they made it out to the dbf just fine but we ran into a couple of minor analysis issues because of it.

>I just thought it did then, I guess. I've heard there were problems in a SQL SELECT on a datetime value. Kind of like adding a decimal value instead of an integer to a date:
>
>d1 = DATE()
>d2 = d1 + .05
>? d1, d2   && both print the same value
>? d1=d2    && .F.!
>
>
>The date values will strip off any of the excess when written to a field. Drove me nuts in a scheduler I did years ago when two date variables wouldn't compare!

For scheduler sorts of systems I've taken to just always putting future events into a queue and when the scheduler fires up it just always pulls things that have not been processed and the event time is less than right now.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform