Re: Olson database legal woes

2012-03-04 Thread Zefram
I wrote (back in October): Arthur David Olson and Paul Eggert are being sued Having just noticed this thread in my mail archive, I'm reminded that I ought to post an update for datetime@perl.org readers. The suit was recently dismissed, voluntarily by the plaintiff, on the grounds that it was

Olson querying

2012-03-04 Thread Zefram
As part of the plan for replacing DT:TZ, we discussed the need for a way to list the available timezones, to replace the static DT:TZ:Catalog document. Attached is a prototype of a command-line tool that could take this role. I'd appreciate comments about its current operation and about what it

Re: Olson database legal woes

2012-03-04 Thread David E. Wheeler
On Mar 4, 2012, at 4:46 AM, Zefram wrote: I wrote (back in October): Arthur David Olson and Paul Eggert are being sued Having just noticed this thread in my mail archive, I'm reminded that I ought to post an update for datetime@perl.org readers. The suit was recently dismissed,

Re: Error with the leap year

2012-03-04 Thread David Nicol
This error is correct, there is no Feb 29, 2013. It could return March 1, 2013... but then adding a year to Feb 29, 2012 and adding a year and a day give the same result which doesn't make sense. It does present a problem... how do you reliably say same date next year? This is very

Re: Error with the leap year

2012-03-04 Thread Michael G Schwern
On 2012.3.2 3:35 PM, David Nicol wrote: It seems that the root of the difficulty is an exclusivity that there can only be one date representing each day. The canonical date. Calling February 1 by the name January 32 is wrong and if you don't stop it, they won't let you enter third grade, or

Re: Error with the leap year

2012-03-04 Thread Rick Measham
If months are day offsets into the year, and day-of-month is the additional days to add to the offset, and this approach is applied to smaller levels too, all the screwey questions can fall into place. And that is how date math works in DateTime. It's just not what the OP did. 2.30a on

Re: Olson querying

2012-03-04 Thread Dave Rolsky
On Sun, 4 Mar 2012, Zefram wrote: As part of the plan for replacing DT:TZ, we discussed the need for a way to list the available timezones, to replace the static DT:TZ:Catalog document. Attached is a prototype of a command-line tool that could take this role. I'd appreciate comments about its

Re: Error with the leap year

2012-03-04 Thread Dave Rolsky
On Sun, 4 Mar 2012, Michael G Schwern wrote: Date math is not commutative and this leads to all sorts of problem. They cannot be dismissed as some silly authoritarian demand. Indeed, it's not authoritarian. It's more like a nightmare inspired by the crack-addled madness of our calendar,

Re: Error with the leap year

2012-03-04 Thread sc
On Sun, Mar 04, 2012 at 09:46:44PM -0600, Dave Rolsky wrote: On Sun, 4 Mar 2012, Michael G Schwern wrote: Date math is not commutative and this leads to all sorts of problem. They cannot be dismissed as some silly authoritarian demand. Indeed, it's not authoritarian. It's more like a