Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bug/Tricky feature of DateTime values
Message
From
29/09/1997 15:23:04
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00051516
Message ID:
00052242
Views:
29
>CREATE TABLE Test (Timespan I) >APPEND BLANK >REPLACE timespan WITH {09/27/97 08:30am} - {09/27/97 08:00am} >BROWSE > >Hmmm, the value stored in the field is 1799. It seems the value returned >by the subtraction of two time fields is not an integer value and it gets >truncated when storing in a integer field. The DateTime field is stored as two integers - one for the Julian date number, the other for the number of milliseconds. So, the seconds are stored with three decimals, no more, no less. You've probably hit a rounding issue here, which may depend on your Set Decimals. Set your Timespan field not to an integer, but to currency instead, and see what happens. I expect you'll have even more fun :)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform