[Lazarus] Date value "0"

Michael Van Canneyt michael at freepascal.org
Wed May 27 09:19:42 CEST 2015



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 ?)

Michael.




More information about the Lazarus mailing list