ddate has problems

Most Linux distributions (and BSDs) come with a binary called ddate (normally /usr/bin/ddate). Whatis ddate gives us this:

(kitesfear) $ whatis ddate
ddate                (1)  - converts Gregorian dates to Discordian dates

Today’s output from ddate is:

(kitesfear) $ ddate
Today is Pungenday, the 11st day of The Aftermath in the YOLD 3177

Can you spot the fail? Though it’s very much in Discordian spirit. I highly doubt that there is an 11st day of any season. When I’m done working on the project I’ve got in front of me right now, I’ll d/l the source code and see if I can’t fix it.


  1. #1 by Joshua on October 31, 2011 - 7:31 AM

    For the record, it says that today is the 12nd of The Afternath… I’m pretty sure it’s only looking at the least significant digit of the date to determine which ordinal suffix it gets. Should be an easy fix once i get a hold of the source code.

  1. fixing ddate(1) « Around Teh Table

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: