[Lazarus] Date value "0"
Sven Barth
pascaldragon at googlemail.com
Wed May 27 00:59:34 CEST 2015
Am 26.05.2015 15:28 schrieb "Michael Schnell" <mschnell at lumino.de>:
>
> On 05/26/2015 01:30 PM, Juha Manninen wrote:
>>
>> Is there some convention how to show a date value "0"?
>> By default it shows year 1899. The patch changed it to "?".
>>
>
> Both funny, as DateTimeToStr(2.0) is "1-1-00" ;-)
Why should that be funny? TDateTime(0.0) is defined as "12/30/1899 12:00
am". Now add two days and we are at "1/1/1900 12:00 am", so all is well...
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150527/41788110/attachment-0003.html>
More information about the Lazarus
mailing list