Re: [Lazarus] Date value 0

2015-05-29 Thread Mark Morgan Lloyd
Gordon Cooper wrote: I once worked in the international section of the New Zealand Meteorological Servce, which used Greenwich Time (UTC). So, each day started at noon, 12 hours behind local time. Plenty of scope for confusion there. But was conveniently in line with the astronomical

Re: [Lazarus] Date value 0

2015-05-29 Thread Tony Whyman
I must say that I'm amazed at how long this thread is - but then I shouldn't be. Many moons ago, I used to work at the long gone British Mainframe Computer company ICL. Here, there was a well used term a bicycle sheds argument. This supposedly came from the sales force retelling how the

Re: [Lazarus] Date value 0

2015-05-29 Thread Mark Morgan Lloyd
Tony Whyman wrote: I must say that I'm amazed at how long this thread is - but then I shouldn't be. Many moons ago, I used to work at the long gone British Mainframe Computer company ICL. Here, there was a well used term a bicycle sheds argument. This supposedly came from the sales force

Re: [Lazarus] Date value 0

2015-05-28 Thread Marc Santhoff
On Do, 2015-05-28 at 17:57 +0200, Jürgen Hestermann wrote: Am 2015-05-28 um 17:14 schrieb waldo kitty: i don't know why it isn't confident... am is morning so 12am is the very first entry into morning as 12pm is the very first entry into afternoon... i don't understand the confusion or the

Re: [Lazarus] Date value 0

2015-05-28 Thread Gordon Cooper
I once worked in the international section of the New Zealand Meteorological Servce, which used Greenwich Time (UTC). So, each day started at noon, 12 hours behind local time. Plenty of scope for confusion there. Fortunately this was several decades before computers appeared. Gordon. On

Re: [Lazarus] Date value 0

2015-05-28 Thread Mark Morgan Lloyd
Jürgen Hestermann wrote: Am 2015-05-28 um 17:14 schrieb waldo kitty: i don't know why it isn't confident... am is morning so 12am is the very first entry into morning as 12pm is the very first entry into afternoon... i don't understand the confusion or the problem... So the day starts with

Re: [Lazarus] Date value 0

2015-05-28 Thread waldo kitty
On 05/27/2015 05:05 AM, Mark Morgan Lloyd wrote: Gordon Cooper wrote: We were taught that 24.00 did not exist. Time went from 23.59 to 00.00. The same rule can be applied to 11.59 am pm. Except where there's a leap second. speaking of which, guess what is coming up... [quote] Date: Mon,

Re: [Lazarus] Date value 0

2015-05-28 Thread Michael Schnell
On 05/27/2015 08:48 PM, waldo kitty wrote: yes... 12:00am is midnight... 00:00am is the same... so also is 00:00 or 24:00 in 24hour time... AFAIK it's rather set that 24:00 is 00:00 the next day, but 12:00 am is not 100% confident as Mark says. -Michael --

Re: [Lazarus] Date value 0

2015-05-28 Thread Giuliano Colla
Il 28/05/2015 11:18, Michael Schnell ha scritto: On 05/27/2015 08:48 PM, waldo kitty wrote: yes... 12:00am is midnight... 00:00am is the same... so also is 00:00 or 24:00 in 24hour time... AFAIK it's rather set that 24:00 is 00:00 the next day, but 12:00 am is not 100% confident as Mark

Re: [Lazarus] Date value 0

2015-05-28 Thread waldo kitty
On 05/28/2015 05:18 AM, Michael Schnell wrote: On 05/27/2015 08:48 PM, waldo kitty wrote: yes... 12:00am is midnight... 00:00am is the same... so also is 00:00 or 24:00 in 24hour time... AFAIK it's rather set that 24:00 is 00:00 the next day, but 12:00 am is not 100% confident as Mark says.

Re: [Lazarus] Date value 0

2015-05-28 Thread waldo kitty
On 05/28/2015 11:57 AM, Jürgen Hestermann wrote: Am 2015-05-28 um 17:14 schrieb waldo kitty: i don't know why it isn't confident... am is morning so 12am is the very first entry into morning as 12pm is the very first entry into afternoon... i don't understand the confusion or the problem...

Re: [Lazarus] Date value 0

2015-05-28 Thread patspiper
On 28/05/15 18:57, Jürgen Hestermann wrote: Am 2015-05-28 um 17:14 schrieb waldo kitty: i don't know why it isn't confident... am is morning so 12am is the very first entry into morning as 12pm is the very first entry into afternoon... i don't understand the confusion or the problem... So

Re: [Lazarus] Date value 0

2015-05-28 Thread Jürgen Hestermann
Am 2015-05-28 um 17:14 schrieb waldo kitty: i don't know why it isn't confident... am is morning so 12am is the very first entry into morning as 12pm is the very first entry into afternoon... i don't understand the confusion or the problem... So the day starts with 12 at midnight and then

Re: [Lazarus] Date value 0

2015-05-28 Thread Lukasz Sokol
On 28/05/15 16:14, waldo kitty wrote: On 05/28/2015 05:18 AM, Michael Schnell wrote: On 05/27/2015 08:48 PM, waldo kitty wrote: yes... 12:00am is midnight... 00:00am is the same... so also is 00:00 or 24:00 in 24hour time... Day runs from 00:00:00 to 23:59:59 (or ::60) in 24h format ;)

Re: [Lazarus] Date value 0

2015-05-27 Thread Graeme Geldenhuys
On 2015-05-27 08:19, Michael Van Canneyt wrote: Does 12:00 am actually exist ? If so, what is that ? Midnight or midday ? Hence I stick to 24 hour time. ;-) Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ --

Re: [Lazarus] Date value 0

2015-05-27 Thread Michael Schnell
For me it works as expcted var t: TDateTime; i: integer; s1, s2, s3, s4 : String; begin t := StrToDate('30-12-1899'); i := round (t); s1 := DateTimeToStr(t); s2 := IntToStr(i); t := StrToDate('29-12-1899'); i := round (t); s3 := DateTimeToStr(t); s4 := IntToStr(i); Memo1.Lines.Add (s1

Re: [Lazarus] Date value 0

2015-05-27 Thread Graeme Geldenhuys
On 2015-05-27 09:17, Michael Schnell wrote: To me (being born 12/31) it's funny that that the base is not a 1/1, especially 1/1/0001. But of course this is completely irrelevant. TDateTime's value of 0 being 1899-12-30 is something Borland adopted from Microsoft to be compatible with

Re: [Lazarus] Date value 0

2015-05-27 Thread Michael Schnell
On 05/27/2015 11:05 AM, Mark Morgan Lloyd wrote: No it can't. You have to be prepared to parse 12:00 a.m. by context but it's usually midnight. Of which day the one that also has 0:pm or of the previous ? -Michael -- ___ Lazarus mailing list

Re: [Lazarus] Date value 0

2015-05-27 Thread Michael Schnell
On 05/27/2015 12:59 AM, Sven Barth wrote: 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... To me (being born 12/31) it's funny that that the base is not a 1/1, especially 1/1/0001. But of course

Re: [Lazarus] Date value 0

2015-05-27 Thread Kamen Ketev
Оригинално писмо От: Michael Van Canneyt Относно: Re: [Lazarus] Date value 0 До: Lazarus mailing list Изпратено на: Сряда, 2015, Май 27 10:55:23 EEST On Wed, 27 May 2015, Kamen Ketev wrote: How can I use TDateTime for date before 12/30/1899 12:00 am. I need

Re: [Lazarus] Date value 0

2015-05-27 Thread Mark Morgan Lloyd
Gordon Cooper wrote: We were taught that 24.00 did not exist. Time went from 23.59 to 00.00. The same rule can be applied to 11.59 am pm. Except where there's a leap second. The same rule can be applied to 11.59 am pm. No it can't. You have to be prepared to parse 12:00 a.m. by context

Re: [Lazarus] Date value 0

2015-05-27 Thread Mark Morgan Lloyd
Juha Manninen wrote: Amazing! Nobody actually looked at the Mantis report nor the patch I referred to, but still answered the mail. The question is about LastUsed date of a Lazarus package link, shown in one of the IDE's dialog windows. Value 0 is wrong in this context because nobody created

Re: [Lazarus] Date value 0

2015-05-27 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 05/27/2015 11:05 AM, Mark Morgan Lloyd wrote: No it can't. You have to be prepared to parse 12:00 a.m. by context but it's usually midnight. Of which day the one that also has 0:pm or of the previous ? Wp 12-hour clock shows 11:59 p.m. followed by 12:00 a.m.,

Re: [Lazarus] Date value 0

2015-05-27 Thread Kamen Ketev
Оригинално писмо От: Michael Schnell Относно: Re: [Lazarus] Date value 0 До: lazarus@lists.lazarus.freepascal.org Изпратено на: Сряда, 2015, Май 27 11:44:17 EEST For me it works as expcted var t: TDateTime; i: integer; s1, s2, s3, s4 : String; begin t := StrToDate('30-12

Re: [Lazarus] Date value 0

2015-05-27 Thread Kamen Ketev
May be using Julian day is better. Or intermediate conversion to it. http://en.wikipedia.org/wiki/Julian_day Regards, Kamen Оригинално писмо От: Michael Schnell Относно: Re: [Lazarus] Date value 0 До: Lazarus mailing list Изпратено на: Сряда, 2015, Май 27 11:17

Re: [Lazarus] Date value 0

2015-05-27 Thread waldo kitty
On 05/27/2015 03:19 AM, Michael Van Canneyt wrote: 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 ?) yes... 12:00am is midnight... 00:00am is the same... so also is 00:00 or 24:00 in 24hour time... -- NOTE: No

Re: [Lazarus] Date value 0

2015-05-27 Thread Michael Van Canneyt
On Wed, 27 May 2015, Sven Barth wrote: Am 26.05.2015 15:28 schrieb Michael Schnell mschn...@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

Re: [Lazarus] Date value 0

2015-05-27 Thread Sven Barth
Am 27.05.2015 09:19 schrieb Michael Van Canneyt mich...@freepascal.org: On Wed, 27 May 2015, Sven Barth wrote: Am 26.05.2015 15:28 schrieb Michael Schnell mschn...@lumino.de: On 05/26/2015 01:30 PM, Juha Manninen wrote: Is there some convention how to show a date value 0? By

Re: [Lazarus] Date value 0

2015-05-27 Thread Kamen Ketev
How can I use TDateTime for date before 12/30/1899 12:00 am. I need it for astronomical calculations. Is it possible to be add flag or something else to ignore this border? Regards, Kamen -- ___ Lazarus mailing list

Re: [Lazarus] Date value 0

2015-05-27 Thread Mattias Gaertner
On Wed, 27 May 2015 09:19:42 +0200 (CEST) Michael Van Canneyt mich...@freepascal.org wrote: [...] 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 ?) You are not alone with such questions:

Re: [Lazarus] Date value 0

2015-05-27 Thread Gordon Cooper
We were taught that 24.00 did not exist. Time went from 23.59 to 00.00. The same rule can be applied to 11.59 am pm. Gordon. On 27/05/15 19:57, Mattias Gaertner wrote: On Wed, 27 May 2015 09:19:42 +0200 (CEST) Michael Van Canneyt mich...@freepascal.org wrote: [...] Does 12:00 am actually

[Lazarus] Date value 0

2015-05-26 Thread Juha Manninen
Regarding issue http://bugs.freepascal.org/view.php?id=27735 Is there some convention how to show a date value 0? By default it shows year 1899. The patch changed it to ?. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Date value 0

2015-05-26 Thread Giuliano Colla
Il 26/05/2015 13:30, Juha Manninen ha scritto: Regarding issue http://bugs.freepascal.org/view.php?id=27735 Is there some convention how to show a date value 0? By default it shows year 1899. The patch changed it to ?. Delphi for value 0 shows 12/30/1899 12:00 am:

Re: [Lazarus] Date value 0

2015-05-26 Thread Michael Schnell
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 ;-) -Michael -- ___ Lazarus mailing list

Re: [Lazarus] Date value 0

2015-05-26 Thread Mark Morgan Lloyd
Giuliano Colla wrote: Il 26/05/2015 13:30, Juha Manninen ha scritto: Regarding issue http://bugs.freepascal.org/view.php?id=27735 Is there some convention how to show a date value 0? By default it shows year 1899. The patch changed it to ?. Delphi for value 0 shows 12/30/1899 12:00 am:

Re: [Lazarus] Date value 0

2015-05-26 Thread Michael Schnell
On 05/26/2015 03:30 PM, Mark Morgan Lloyd wrote: If it were something like Anno Domini 0, which quite simply never existed, then it could be displayed as invalid. It's funny, but AFAIK, you are right. By definition, before Year 1 there was Year -1 and not Year 0. Why TDateTime seemingly

Re: [Lazarus] Date value 0

2015-05-26 Thread Sven Barth
Am 26.05.2015 15:28 schrieb Michael Schnell mschn...@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

Re: [Lazarus] Date value 0

2015-05-26 Thread Juha Manninen
I changed it to Never as suggested by wp. It is a good word in this context. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus