> I'm having an itch to convert UTC<->TAI.  I started off writing this a
> DateTime::Format module because the conversion is so simple but since TAI
> isn't just a display formating of the Gregorian/UTC system (different
epoch, no
> leapseconds, etc.) I'm now thinking this should be DateTime::Calendar
> module.

TAI isn't really a calendar, or a format.

I would like to be able to use TAI times in any calendar that supports time.
That would suggest a DateTime::Time:: category. Writing the module as a
completely separate calender requires you to copy all of the funcionality of
the DateTime module.

How about this: consider TAI to be a time zone, with offset w.r.t. UTC of
about 50(?) seconds. DT::TimeZone::TAI would be easy to write, I imagine.
And easy to reuse in other calendars.

Of course, TAI isn't really a time zone either.

Eugene

Reply via email to