Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting character 3:45 PM to 15 and 45 numeric
Message
From
10/02/2008 13:20:13
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01290609
Message ID:
01291206
Views:
7
>Ah, so limiting! I mean what if you were wanting to track the history of some caveman born in 10,000,000 BC . . . I mean, could it really handle that? <g>

Fox could have handled that, but can't, because the routine to display (and generally, convert to string) has artificial limits - can't display dates before year 1... well, to an extent. The bug appears to appear on the leap day of year zero:
?{^0001-01-01}-306
?{^0001-01-01}-307
?{^0001-01-01}-308
VFP also has some sort of Y10K bug:

?{^9999-12-31}+1

So while internally it can store dates for about two billion days before and after the start of current calendar, it just won't display anything for not between(date,
{^0000-03-01}, {^9999-12-31}).

So, tough stool... I won't be able to write my time travel agency software in VFP. I could have a date class, with two integers, and have my own routines to calculate leap years etc etc. Let me know if astronomers do (will have been doing?) more changes to the calendar in the next million years or so ;).

back to same old

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

Click here to load this message in the networking platform