2 # Discordian date support fnord ikiwiki.
3 package IkiWiki::Plugin::ddate;
8 hook(type => "checkconfig", id => "skeleton", call => \&checkconfig);
11 sub checkconfig () { #{{{
12 if (! defined $config{timeformat} ||
13 $config{timeformat} eq '%c') {
14 $config{timeformat}='on %{%A, the %e of %B%}, %Y. %N%nCelebrate %H';
18 sub IkiWiki::displaytime ($) { #{{{
21 my $gregorian=POSIX::strftime("%d %m %Y", localtime($time));
22 my $date=`ddate +'$config{timeformat}' $gregorian`;
24 if ($? || ! length $date) {
25 return "some time or other (hail Eris!)";