Linux Commands Examples

A great documentation place for Linux commands


convert Gregorian dates to Discordian dates

see also : date


ddate [+format] [date]

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!



% ddate
Sweetmorn, Bureaucracy 42, 3161 YOLD

% ddate +’Today is %{%A, the %e of %B%}, %Y. %N%nCelebrate %H’
Today is Sweetmorn, the 42nd of Bureaucracy, 3161.

% ddate +"It’s %{%A, the %e of %B%}, %Y. %N%nCelebrate %H" 26 9 1995
It’s Prickle-Prickle, the 50th of Bureaucracy, 3161.
Celebrate Bureflux

% ddate +"Today’s %{%A, the %e of %B%}, %Y. %N%nCelebrate %H" 29 2 1996
Today’s St. Tib’s Day, 3162.

pkgdesc="ddate extracted from util-linux"
arch=('x86_64 i686')
arch=('x86_64 i686')


ddate prints the date in Discordian date format.

If called with no arguments, ddate will get the current system date, convert this to the Discordian date format and print this on the standard output. Alternatively, a Gregorian date may be specified on the command line, in the form of a numerical day, month and year.

If a format string is specified, the Discordian date will be printed in a format specified by the string. This mechanism works similarly to the format string mechanism of date(1), only almost completely differently. The fields are:


Full name of the day of the week (i.e., Sweetmorn)


Abbreviated name of the day of the week (i.e., SM)


Full name of the season (i.e., Chaos)


Abbreviated name of the season (i.e., Chs)


Ordinal number of day in season (i.e., 23)


Cardinal number of day in season (i.e., 23rd)


Name of current Holyday, if any


Magic code to prevent rest of format from being printed unless today is a Holyday.






Number of days remaining until X-Day. (Not valid if the SubGenius options are not compiled in.)



Used to enclose the part of the string which is to be replaced with the words "St. Tib’s Day" if the current day is St. Tib’s Day.


Try it and see.


The ddate command is part of the util-linux package and is available from

distribution policy

Public domain. All rites reversed.


After ’X-Day’ passed without incident, the Church of the SubGenius declared that it had got the year upside down - X-Day is actually in 8661 AD rather than 1998 AD. Thus, the True X-Day is Cfn 40, 9827.


ddate(1) will produce undefined behavior if asked to produce the date for St. Tib’s day and its format string does not contain the St. Tib’s Day delimiters %{ and %}.

see also

date ,
Malaclypse the Younger, Principia Discordia, Or How I Found Goddess And What I Did To Her When I Found Her


Original program by Druel the Chaotic aka Jeremy Johnson (mpython[:at:][:dot:]edu)
Major rewrite by Lee H:. O:. Smith, KYTP, aka Andrew Bulhak (acb[:at:]dev.null[:dot:]org)
Five tons of flax.

How can this site be more helpful to YOU ?

give  feedback