Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: int() returning wrong values from datetime operatio
Message
From
01/11/2005 17:27:10
 
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:
01064257
Views:
51
Hi Dave,

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!

>Fred,
>
>I don't think the VFP datetime() function will return millisecond level information. C/C++ functions can, SQL server can.
>
>>Sounds reasonable to me. But I thought that DATETIME() did return a millisecond value, you just didn't see it, and that's what would cause problems in trying to do a SELECT for a specific datetime type value.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform