[Lazarus] DateDif function needed

Hans-Peter Diettrich DrDiettrich1 at aol.com
Tue Nov 19 00:58:15 CET 2013

waldo kitty schrieb:
> On 11/18/2013 11:46 AM, Hans-Peter Diettrich wrote:
>> J├╝rgen Hestermann schrieb:
>>> I still find "CalenderDiff" the best name for this function
>>> because it clearly states that differences are calculated for calender
>>> dates and not for an homogeneous stream of seconds/hours/days.
>> This raises immediately the next question: which calendar?
> :choke: :splutter: :lol: you are right, though... GregorianCalendarDiff 
> then?? but wouldn't that also need corresponding name changes to such 
> routines as DaysIn* and others? or an additional parameter indicating 
> which calendar is to be used? ;) O:)

My point simply is the "calendar" in the name, which suggests to me 
something more powerful than only an Gregorian calendar (similar to the 
Encoding of the new AnsiStrings).


More information about the Lazarus mailing list