[fpc-devel] negative TDateTime values and MinDateTime
    José Mejuto 
    joshyfun at gmail.com
       
    Thu Aug  4 15:00:22 CEST 2011
    
    
  
Hello FPC,
Thursday, August 4, 2011, 10:11:16 AM, you wrote:
GG> On 4 August 2011 09:58, Felipe Monteiro de Carvalho wrote:
>>
>> I've never heard that our DateTime routines support other calendars.
>> My guess is that they simply don't.
GG> Even so, does that mean we can't write software with FPC for use by
GG> Historian's where they might catalog artifacts with a date less that
GG> Year 100?  I haven't tested, but if so, that's terrible.
You need to use a dates library, usual simple date libraries like the
fpc/delphi rtl are plain wrong for gregorian calendar prior 1582, so
dates before (like the 100) mindate limit is meaningless. Just the
october 5 1582 does not exists. Even in gregorian calendar if you live
in Turkey the mindate value should be 1/1/1926. Dates and unicode
suffers the same localization problems.
-- 
Best regards,
 José
    
    
More information about the fpc-devel
mailing list