On Wed, 12 Feb 2003, Eugene van der Pijll wrote:
> One could say that ISO8601 is zero-based, while Dionisius was 1-based
> (not surprisingly, as zero wasn't invented back then). For some strange
> reason, the zero-based year in DateTime is defined as the (useless,
> IMHO) function
>
> sub year_0 { $_[0]->{c}{year} - 1 }
>
> (DateTime uses astronomical convention internally) while I would have
> defined it as the more useful and less surprising
>
> sub year_0 { $_[0]->{c}{year} }
That makes sense.
> Interestingly, the function ymd (and therefore also iso8601) uses
> astronomical years. Obviously correct for iso8601; I'm not sure about
> ymd.
That's a bug.
-dave
/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/