source: npl/overig/util-linux/ddate.1 @ 0105685

gcc484ntopperl-5.22
Last change on this file since 0105685 was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 3.0 KB
Line 
1.\" All Rites Reversed.  This file is in the PUBLIC DOMAIN.
2.\" Kallisti.
3.TH DDATE 1 "Bureaucracy 3161" "ddate" "Emperor Norton User Command"
4.SH NAME
5ddate \- convert Gregorian dates to Discordian dates
6.SH SYNOPSIS
7.B ddate
8.RI [ \fB+\fPformat]
9.RI [ date ]
10.SH DESCRIPTION
11.B ddate
12prints the date in Discordian date format.
13.PP
14If called with no arguments,
15.B ddate
16will get the current system date, convert this to the Discordian
17date format and print this on the standard output. Alternatively, a
18Gregorian date may be specified on the command line, in the form of a numerical
19day, month and year.
20.PP
21If a format string is specified, the Discordian date will be printed in
22a format specified by the string. This mechanism works similarly to the
23format string mechanism of
24.B date(1),
25only almost completely differently. The fields are:
26.IP %A
27Full name of the day of the week (i.e., Sweetmorn)
28.IP %a
29Abbreviated name of the day of the week (i.e., SM)
30.IP %B
31Full name of the season (i.e., Chaos)
32.IP %b
33Abbreviated name of the season (i.e., Chs)
34.IP %d
35Cardinal number of day in season (i.e., 23)
36.IP %e
37Ordinal number of day in season (i.e., 23rd)
38.IP %H
39Name of current Holyday, if any
40.IP %N
41Magic code to prevent rest of format from being printed unless today is
42a Holyday.
43.IP %n
44Newline
45.IP %t
46Tab
47.IP %X
48Number of days remaining until X-Day. (Not valid if the SubGenius options
49are not compiled in.)
50.IP %{
51.IP %}
52Used to enclose the part of the string which is to be replaced with the
53words "St. Tib's Day" if the current day is St. Tib's Day.
54.IP %\.
55Try it and see.
56.bp
57.SH EXAMPLES
58.nf
59% ddate
60.br
61Sweetmorn, Bureaucracy 42, 3161 YOLD
62.PP
63% ddate +'Today is %{%A, the %e of %B%}, %Y. %N%nCelebrate %H'
64.br
65Today is Sweetmorn, the 42nd of Bureaucracy, 3161.
66.PP
67% ddate +"It's %{%A, the %e of %B%}, %Y. %N%nCelebrate %H" 26 9 1995
68.br
69It's Prickle-Prickle, the 50th of Bureaucracy, 3161.
70.br
71Celebrate Bureflux
72.PP
73% ddate +"Today's %{%A, the %e of %B%}, %Y. %N%nCelebrate %H" 29 2 1996
74.br
75Today's St. Tib's Day, 3162.
76.br
77
78.SH BUGS
79
80.B ddate(1)
81will produce undefined behavior if asked to produce the date for St. Tib's
82day and its format string does not contain the St. Tib's Day delimiters
83%{ and %}.
84
85.SH NOTE
86
87After `X-Day' passed without incident, the Church of the SubGenius
88declared that it had got the year upside down - X-Day is actually in 8661 AD
89rather than 1998 AD.  Thus, the True X-Day is Cfn 40, 9827.
90
91.SH AUTHOR
92.nh
93Original program by Druel the Chaotic aka Jeremy Johnson (mpython@gnu.ai.mit.edu)
94.br
95Major rewrite by Lee H:. O:. Smith, KYTP, aka Andrew Bulhak (acb@dev.null.org)
96.br
97Gregorian B.C.E. dates fixed by Chaplain Nyan the Wiser, aka Dan Dart (ntw@dandart.co.uk)
98.br
99Five tons of flax.
100
101.SH DISTRIBUTION POLICY
102
103Public domain. All rites reversed.
104
105.SH SEE ALSO
106
107date(1),
108.br
109http://www.subgenius.com/
110.br
111Malaclypse the Younger,
112.I "Principia Discordia, Or How I Found Goddess And What I Did To Her When I Found Her"
113
114.SH AVAILABILITY
115The ddate command is available from https://github.com/bo0ts/ddate.
Note: See TracBrowser for help on using the repository browser.