Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: int() returning wrong values from datetime operatio
Message
 
 
To
02/11/2005 10:57:40
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:
01064532
Views:
47
Jeroen,

>I guess someone in the designtime of VFP thought it was a great idea to have millisecond resolution in the datetime-vars. However they did not bother to adapt the conversion routines to work with the milliseconds.

This datetime standard was in place well before VFP implemented datetimes. I'd have to say the thought was to "shield" us from the milliseconds portion so that us database developers could just think in terms of integral seconds between two datetimes. We already had seconds() to give us sub-second time spans.

The problem is there are a couple of holes in the shield. Once you know they are there it's not difficult to adapt code accordingly.
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