1 .\" All Rites Reversed. This file is in the PUBLIC DOMAIN.
3 .TH DDATE 1 "59 Bureaucracy 3161" "" "Emperor Norton Utilities"
5 ddate \- converts Gregorian dates to Discordian dates
12 prints the date in Discordian date format.
14 If called with no arguments,
16 will get the current system date, convert this to the Discordian
17 date format and print this on the standard output. Alternatively, a
18 Gregorian date may be specified on the command line, in the form of a numerical
21 If a format string is specified, the Discordian date will be printed in
22 a format specified by the string. This mechanism works similarly to the
23 format string mechanism of
25 only almost completely differently. The fields are:
27 Full name of the day of the week (i.e., Sweetmorn)
29 Abbreviated name of the day of the week (i.e., SM)
31 Full name of the season (i.e., Chaos)
33 Abbreviated name of the season (i.e., Chs)
35 Ordinal number of day in season (i.e., 23)
37 Cardinal number of day in season (i.e., 23rd)
39 Name of current Holyday, if any
41 Magic code to prevent rest of format from being printed unless today is
48 Number of days remaining until X-Day. (Not valid if the SubGenius options
52 Used to enclose the part of the string which is to be replaced with the
53 words "St. Tib's Day" if the current day is St. Tib's Day.
61 Sweetmorn, Bureaucracy 42, 3161 YOLD
63 % ddate +'Today is %{%A, the %e of %B%}, %Y. %N%nCelebrate %H'
65 Today is Sweetmorn, the 42nd of Bureaucracy, 3161.
67 % ddate +"It's %{%A, the %e of %B%}, %Y. %N%nCelebrate %H" 26 9 1995
69 It's Prickle-Prickle, the 50th of Bureaucracy, 3161.
73 % ddate +"Today's %{%A, the %e of %B%}, %Y. %N%nCelebrate %H" 29 2 1996
75 Today's St. Tib's Day, 3162.
81 will produce undefined behaviour if asked to produce the date for St. Tib's
82 day and its format string does not contain the St. Tib's Day delimiters
87 After `X-Day' passed without incident, the Church of the SubGenius
88 declared that it had got the year upside down - X-Day is actually in 8661 AD
89 rather than 1998 AD. Thus, the True X-Day is Cfn 40, 9827.
93 Original program by Druel the Chaotic aka Jeremy Johnson (mpython@gnu.ai.mit.edu)
95 Major rewrite by Lee H:. O:. Smith, KYTP, aka Andrew Bulhak (acb@dev.null.org)
99 .SH DISTRIBUTION POLICY
101 Public domain. All rites reversed.
107 http://www.subgenius.com/
109 Malaclypse the Younger,
110 .I "Principia Discordia, Or How I Found Goddess And What I Did To Her When I Found Her"
113 The ddate command is part of the util-linux-ng package and is available from
114 ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.