DateTime Project Rulez0rz

I wanted to turn all the dates in my Changes file into the YYYY-MM-DD format (in this case from things like “Aug 27, 2008”). Here’s my one-liner:

perl -MDateTime::Format::Natural -pi -e \
    '$f = DateTime::Format::Natural->new;
     s/^([\d\.]+\s+)(\w+.+)$/$1 . $f->parse_datetime($2)->ymd/e' \

The DateTime project is pretty badass, if I do say so myself. Note that most of the credit here should go to Steven Schubiger for DateTime::Format::Natural

Comments, on 2010-10-15 16:59, said:
It is a pity you had to hose the original content of to prove it. It is now one of the few sites where the old look (and content) was better than the new.

Dave Rolsky, on 2010-10-15 17:26, said:
@mirrorkitty: The content is exactly the same on the new wiki as it was on the old, minus the insane amounts of spam.

If you actually want to do anything on it besides leave snarky comments on my blog, you could look at patching Silki to allow themes and redo the datetime theme.