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