Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select records with Maximum date group by address
Message
From
07/10/2002 12:22:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
07/10/2002 10:44:57
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00705983
Message ID:
00708406
Views:
12
This message has been marked as a message which has helped to the initial question of the thread.
>Very good!
>
>Now the question is, is it my problem or Microsoft's? Ultimately it is mine, but is it a bug?

Replying would be poking my hand into bee nest :) Anyways I'll try to explain why as softly as I can :)

Datetime is held as 2 integers, one for date and other is for time of day (fractional). IOW time portion also keeps milliseconds but you didn't say what the milliseconds was !!! It might be any one from 0 to 999 from the seemingly same datetime values (you don't see the milliseconds part). However on comparison milliseconds part comes into play with a 999/1000 miss chance (actual resolution like 1/18 secs narrows the gap but in theory it's 1000 possible different values for same YYYYMMDDhhmmss).

If it's a bug it's not VFP's bug IMHO. It wasn't VFP's decision to keep datetime as 8 byte value (of course I'm not sure about this but have a great sense it was result of SQL datetime and C datetime structs - I don't know exactly those structs and might be wrong). Basing my idea that Foxpro was holding date as plain YYYYMMDD and didn't choose to do same for datetime. Currently I don't care the roots and carefull to write workaround code ( because it hit me before as did to you now :)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform