Re: [Lazarus] DateDif function needed

2013-11-14 Thread waldo kitty
On 11/14/2013 12:48 PM, Jürgen Hestermann wrote: Am 2013-11-14 07:56, schrieb Patrick Chevalley: >> So the difference between 2007-01-01 12:00 and 2008-01-01 12:00 ist >> *not* one year? > No, the base definition of the year is not a digit change, > but the time it take to the Earth to return

Re: [Lazarus] DateDif function needed

2013-11-14 Thread waldo kitty
On 11/14/2013 12:26 PM, Bart wrote: On 11/14/13, waldo kitty wrote: you are completely right, IMHO... one simply needs to choose their desired base and level of error that is acceptable for their task's needs... It's all about definition. right... that's what i meant by "desired base"... e

Re: [Lazarus] DateDif function needed

2013-11-14 Thread Jürgen Hestermann
Am 2013-11-14 07:56, schrieb Patrick Chevalley: >> So the difference between 2007-01-01 12:00 and 2008-01-01 12:00 ist *not* one year? > No, the base definition of the year is not a digit change, > but the time it take to the Earth to return at the same point of its orbit around the Sun. Well,

Re: [Lazarus] DateDif function needed

2013-11-14 Thread Bart
On 11/14/13, waldo kitty wrote: > you are completely right, IMHO... one simply needs to choose their desired > base > and level of error that is acceptable for their task's needs... It's all about definition. For me I would think that given "today" is the last day of a given month, then "today"

Re: [Lazarus] DateDif function needed

2013-11-14 Thread Frederic Da Vitoria
2013/11/14 John Landmesser > Hihi, i asked a question about a DateDiff function for FreePascal, because > i wanted to know: how many years, month, days left to work in Office until > my pension begins on 01.08.2018. > > .. and where are we now?? Right in the middle of a very interesting discuss

Re: [Lazarus] DateDif function needed

2013-11-14 Thread Frederic Da Vitoria
2013/11/14 Michael Schnell > On 11/14/2013 03:46 PM, Frederic Da Vitoria wrote: > > .. and where are we now?? > > > Right in the middle of a very interesting discussion :-) > > > -1 > Well, everyone is entitled to his opinions, right, else we would all be doing C :-) -- Frederic Da Vitoria

Re: [Lazarus] DateDif function needed

2013-11-14 Thread Hans-Peter Diettrich
John Landmesser schrieb: Hihi, i asked a question about a DateDiff function for FreePascal, because i wanted to know: how many years, month, days left to work in Office until my pension begins on 01.08.2018. What do you consider as *one* year, month etc., fixed (average) values or calender v

Re: [Lazarus] DateDif function needed

2013-11-14 Thread waldo kitty
On 11/14/2013 8:16 AM, Mattias Gaertner wrote: On Thu, 14 Nov 2013 13:48:46 +0100 John Landmesser wrote: [...] "Our" function delivers the age of a person in years, months, days. What is your diff between 31th Jan and 30 March 2013? the one i am currently testing returns 2013-01-31 to 2

Re: [Lazarus] DateDif function needed

2013-11-14 Thread Michael Schnell
On 11/14/2013 03:46 PM, Frederic Da Vitoria wrote: .. and where are we now?? Right in the middle of a very interesting discussion :-) -1 -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepasca

Re: [Lazarus] DateDif function needed

2013-11-14 Thread Junior
Frankly, this list from time to time ... Em 14-11-2013 11:10, John Landmesser escreveu: On 14.11.2013 14:16, Mattias Gaertner wrote: On Thu, 14 Nov 2013 13:48:46 +0100 John Landmesser wrote: [...] "Our" function delivers the age of a person in years, months, days. What is your diff between

Re: [Lazarus] DateDif function needed

2013-11-14 Thread John Landmesser
On 14.11.2013 14:16, Mattias Gaertner wrote: On Thu, 14 Nov 2013 13:48:46 +0100 John Landmesser wrote: [...] "Our" function delivers the age of a person in years, months, days. What is your diff between 31th Jan and 30 March 2013? Mattias -- ___ L

Re: [Lazarus] DateDif function needed

2013-11-14 Thread waldo kitty
On 11/14/2013 7:25 AM, José Mejuto wrote: Maybe I'm completly wrong ? you are completely right, IMHO... one simply needs to choose their desired base and level of error that is acceptable for their task's needs... the initial problem arose because there's no easy way to calc the desired out

Re: [Lazarus] DateDif function needed

2013-11-14 Thread Mattias Gaertner
On Thu, 14 Nov 2013 13:48:46 +0100 John Landmesser wrote: >[...] > "Our" function delivers the age of a person in years, months, days. What is your diff between 31th Jan and 30 March 2013? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.fre

Re: [Lazarus] DateDif function needed

2013-11-14 Thread waldo kitty
On 11/14/2013 4:50 AM, Reimar Grabowski wrote: On Wed, 13 Nov 2013 20:34:36 +0100 John Landmesser wrote: What about Databases like mysql, Oracle, Firebird. I'm shure they have such a function. For MySQL: DATEDIFF(expr1,expr2) DATEDIFF() returns expr1 – expr2 expressed as a value in days fr

Re: [Lazarus] DateDif function needed

2013-11-14 Thread waldo kitty
On 11/14/2013 4:41 AM, Reimar Grabowski wrote: On Thu, 14 Nov 2013 07:19:56 +0100 Jürgen Hestermann wrote: Am 2013-11-13 19:42, schrieb Reimar Grabowski: > 1 julian year = 365.25 days of 86400 SI seconds each. > Of course there are lots of other definitions for year but if FPC uses > the

Re: [Lazarus] DateDif function needed

2013-11-14 Thread John Landmesser
On 14.11.2013 10:50, Reimar Grabowski wrote: For MySQL: DATEDIFF(expr1,expr2) DATEDIFF() returns expr1 – expr2 expressed as a value in days from one date to the other. expr1 and expr2 are date or date-and-time expressions. Only the date parts of the values are used in the calculation. :) R.

Re: [Lazarus] DateDif function needed

2013-11-14 Thread José Mejuto
El 14/11/2013 7:56, Patrick Chevalley escribió: All this efforts are to bypass the problem with the calendar year (the one you mention) because it is sometime 365 and sometime 366 days. This is a totally unacceptable definition when you need an homogeneous time scale. Hello, I was following t

Re: [Lazarus] DateDif function needed

2013-11-14 Thread Reimar Grabowski
On Wed, 13 Nov 2013 20:34:36 +0100 John Landmesser wrote: > What about Databases like mysql, Oracle, Firebird. I'm shure they have > such a function. For MySQL: DATEDIFF(expr1,expr2) DATEDIFF() returns expr1 – expr2 expressed as a value in days from one date to the other. expr1 and expr2 are

Re: [Lazarus] DateDif function needed

2013-11-14 Thread Reimar Grabowski
On Thu, 14 Nov 2013 07:56:16 +0100 Patrick Chevalley wrote: > All this efforts are to bypass the problem with the calendar year (the > one you mention) because it is sometime 365 and sometime 366 days. This > is a totally unacceptable definition when you need an homogeneous time > scale. > >

Re: [Lazarus] DateDif function needed

2013-11-14 Thread Reimar Grabowski
On Thu, 14 Nov 2013 07:19:56 +0100 Jürgen Hestermann wrote: > Am 2013-11-13 19:42, schrieb Reimar Grabowski: > > 1 julian year = 365.25 days of 86400 SI seconds each. > > Of course there are lots of other definitions for year but if FPC uses the > julian one the value is exact and no approxima

Re: [Lazarus] Lazarus 1.2RC1 Ctrl-F9 not working

2013-11-14 Thread Henry Vermaak
On Wed, Nov 13, 2013 at 11:17:59PM +0100, Bart wrote: > On 11/13/13, Mattias Gaertner wrote: > > > Check your short cuts in your system settings. They take precedence > > over any normal application like the IDE. > > On my Fedora 18 / KDE Ctrl+F9 does something weird to the windows that > I cann

Re: [Lazarus] Debugging Wince shows NO debugger output

2013-11-14 Thread Sven Barth
Am 13.11.2013 21:40, schrieb GREP: Hi I could not get the breakpoints to work, I googled a lot, tried all the suggestions unsuccessfully. Did you find this bug report http://bugs.freepascal.org/view.php?id=21061 on your search? (and also the related ones) Regards, Sven -- ___

Re: [Lazarus] Debugging Wince shows NO debugger output

2013-11-14 Thread Sven Barth
Am 13.11.2013 22:49, schrieb Martin: On 13/11/2013 20:40, GREP wrote: Hi I could not get the breakpoints to work, I googled a lot, tried all the suggestions unsuccessfully. After a full day of trial I ended up that now the project does not show anything in the Debugger output window. I have thi