[Lazarus] Date value "0"

Sven Barth pascaldragon at googlemail.com
Wed May 27 09:27:41 CEST 2015


Am 27.05.2015 09:19 schrieb "Michael Van Canneyt" <michael at freepascal.org>:
>
>
>
> On Wed, 27 May 2015, Sven Barth wrote:
>
>>
>> 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...
>
>
> Does 12:00 am actually exist ? If so, what is that ? Midnight or midday ?
> Should not that be 00:00 am ? (or is that the same ?)

Honestly I don't know, as I simply copy-pasted the value mentioned by Mark,
since I'm on mobile and thus a bit lazy ;)

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150527/6218176f/attachment-0003.html>


More information about the Lazarus mailing list