?? ddate.1
字號:
.\" All Rites Reversed. This file is in the PUBLIC DOMAIN..\" Kallisti..TH DDATE 1 "59 Bureaucracy 3161" "" "Emperor Norton Utilities".SH NAMEddate \- converts Gregorian dates to Discordian dates.SH SYNOPSIS.B ddate [+format] [date].SH DESCRIPTION.B ddateprints the date in Discordian date format..PPIf called with no arguments,.B ddate will get the current system date, convert this to the Discordiandate format and print this on the standard output. Alternatively, aGregorian date may be specified on the command line, in the form of a numericalday, month and year..PPIf 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.B date(1), only almost completely differently. The fields are:.IP %AFull name of the day of the week (i.e., Sweetmorn).IP %a Abbreviated name of the day of the week (i.e., SM).IP %B Full name of the season (i.e., Chaos).IP %bAbbreviated name of the season (i.e., Chs).IP %dOrdinal number of day in season (i.e., 23).IP %eCardinal number of day in season (i.e., 23rd).IP %HName of current Holyday, if any.IP %NMagic code to prevent rest of format from being printed unless today isa Holyday..IP %n Newline.IP %t Tab.IP %XNumber of days remaining until X-Day. (Not valid if the SubGenius optionsare not compiled in.).IP %{.IP %}Used to enclose the part of the string which is to be replaced with thewords "St. Tib's Day" if the current day is St. Tib's Day..IP %\.Try it and see..bp.SH EXAMPLES.nf% ddate.brSweetmorn, Bureaucracy 42, 3161 YOLD.PP% ddate +'Today is %{%A, the %e of %B%}, %Y. %N%nCelebrate %H'.brToday is Sweetmorn, the 42nd of Bureaucracy, 3161. .PP% ddate +"It's %{%A, the %e of %B%}, %Y. %N%nCelebrate %H" 26 9 1995.brIt's Prickle-Prickle, the 50th of Bureaucracy, 3161. .brCelebrate Bureflux.PP% ddate +'Today's %{%A, the %e of %B%}, %Y. %N%nCelebrate %H' 29 2 1996.brToday's St. Tib's Day, 3162. .br.SH BUGS.B ddate(1)will produce undefined behaviour if asked to produce the date for St. Tib'sday and its format string does not contain the St. Tib's Day delimiters %{ and %}..SH NOTEAfter `X-Day' passed without incident, the Church of the SubGeniusdeclared that it had got the year upside down - X-Day is actually in 8661 ADrather than 1998 AD. Thus, the True X-Day is Cfn 40, 9827..SH AUTHOR.nhOriginal program by Druel the Chaotic aka Jeremy Johnson (mpython@gnu.ai.mit.edu).brMajor rewrite by Lee H:. O:. Smith, KYTP, aka Andrew Bulhak (acb@dev.null.org).brFive tons of flax..SH DISTRIBUTION POLICYPublic domain. All rites reversed..SH SEE ALSOdate(1),.brhttp://www.subgenius.com/.brMalaclypse the Younger, .I "Principia Discordia, Or How I Found Goddess And What I Did To Her When I Found Her"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -