Shire Calendar Update
I have recently adopted modules Date::Tolkien::Shire and DateTime::Fiction::JRRTolkien::Shire.
The releases to date have been relatively minor fixes, but the development releases of a couple days ago are more significant, to the extent that I thought users of these modules should get a "heads up."
- Common code and data have been factored out into Date::Tolkien::Shire::Data. This module also provides time formatting, allowing the implementation of a
strftime()
method in both the original modules. - The direct conversion of dates between Gregorian and Shire in both modules has been replaced by calculations in terms of Rata Die days. Regression tests have been provided (in
xt/author/regression.t
) to try to ensure that this did not break anything. - DateTime::Fiction::JRRTolkien::Shire has been provided with most of the DateTime interface. The known missing pieces are:
- Duration and date arithmetic. I hope to add this in a subsequent release.
format_cldr()
. I am not sure whether this will be added or not; at the moment the implementation path is unclear to me.era()
, which is marked as deprecated in the DateTime code.
I can not imagine that there are any mission-critical uses of these modules, but interested parties should probably take a look at the revisions, and let me know if anything untoward turns up.
Tom Wyant
Leave a comment