Found the story on slashdot about having some fun with CPAN, so I
hopped over to perl.com to read the article.  There is a perl module
named Date::Tolkien::Shire, so I ran:
 
  perl -MCPAN -eshell
  cpan> install Date::Tolkien::Shire

Once that finished, I looked up what today was in Shire time (line cut
for email):

perl -e 'use Date::Tolkien::Shire; print \
 Date::Tolkien::Shire->new(time)->on_date, "\n"; '

It returned:

  Monday 10 Blotmath 7465

Not too exciting, so I walked backwards a bit until an event occurred...

perl -e 'use Date::Tolkien::Shire; print \
 Date::Tolkien::Shire->new(time-(86400*15))->on_date, "\n"; '

 Sunday 25 Winterfilth 7465

 Council of Elrond, 1418.


I started reading the Lord of the Rings in anticipation for the movie,
and strangly enough, I'm at about the same time frame in the book. 

Perl fun.  :)

--
Rob <rob_at_euglug_dot_net>
my @euglugCode = qw(v+++ e--- eug+ bsd+++ gnu+ S+++);

Reply via email to