DDATE(1) Emperor Norton Utilities DDATE(1) 名前 ddate - グレゴリオ暦の日付をディスコルディア暦の日付に変換する 書式 ddate [+format] [date] 説明 ddate は日付をディスコルディア暦の日付形式で表示する。 引き数なしで呼び出されると、 ddate は現在のシステム日付を取得し、ディス コルディア暦の日付形式に変換して、標準出力に表示する。反対に、コマン ド ラ イン上からグレゴリオ暦の日付を数字で日・月・年の形式で指定することも できる。 フォーマット文字列が指定された場合、ディスコルディア暦の日付がこの文 字 列で指定された形式で表示される。この仕組みは date(1) のフォーマット文字 列の仕組みと同様に動作するが、フォーマットされた結果はほとんど完全に 異 なる。フィールドを以下に示す: %A 週内日の完全な名前 (すなわち、Sweetmorn のような形式) %a 週内日の省略した名前 (すなわち、SM のような形式) %B 季節の完全な名前 (すなわち、Chaos のような形式) %b 季節の省略した名前 (すなわち、Chs のような形式) %d 序数表示した季節内通算日数 (すなわち、23 のような形式) %e 基数表示した季節内通算日数 (すなわち、23rd のような形式) %H その日が祝日ならば、その祝日名 %N その日が祝日でない限り、これ以降のフォーマットを表示しないように するマジックコード %n 改行 %t タブ %X X-Day までの残り日数 (SubGenius オプションが組み込まれていなけれ ば有効でない) %{ %} その日が聖 Tib の日であった場合に、 "聖 Tib の日" という単語に置 き換えられる部分文字列を囲むのに使われる %. 試して見てみなさい 例 % ddate Sweetmorn, Bureaucracy 42, 3161 YOLD % ddate +’今日は %{%A, the %e of %B%}, %Y 年です。\ %N%n%H の日をお祝いしましょう。’ 今日は Sweetmorn, the 42nd of Bureaucracy, 3161 年です。 % ddate +"その日は %{%A, the %e of %B%}, %Y 年です。\ %N%n%H の日をお祝いしましょう。" 26 9 1995 その日は Prickle-Prickle, the 50th of Bureaucracy, 3161 年です。 Bureflux の日をお祝いしましょう。 % ddate +"今日は %{%A, the %e of %B%}, %Y 年です。\ %N%n%H の日をお祝いしましょう。" 29 2 1996 今日は 聖 Tib の日, 3162 年です。 バグ ddate(1) は、聖 Tib の日の日付を表示するように指示されている場合に、 フ ォーマット文字列に聖 Tib の日を表すデリミタ %{ と %} が含まれていないと 、予期せぬ挙動をする。 注意 ‘X-Day’ が無事に過ぎた後、 SubGenius 教会は、その年がさかさまになったこ と を 宣 言 した。 - つまり、X-Day は西暦 1998 年ではなく、実際には西暦 8661 年である。したがって、本当の X-Day は Cfn 40, 9827 である。 著者 元 々 の プ ロ グ ラ ム は Druel the Chaotic, aka Jeremy Johnson (mpython@gnu.ai.mit.edu) が書いた。 Lee H:. O:. Smith, KYTP, aka Andrew Bulhak (acb@dev.null.org) が大幅に 書き直した。 Five tons of flax. 配布条件 Public domain. All rites reversed. 関連項目 date(1), http://www.subgenius.com/ Malaclypse the Younger, Principia Discordia, Or How I Found Goddess And What I Did To Her When I Found Her 59 Bureaucracy 3161 DDATE(1)
DDATE(1) Emperor Norton Utilities DDATE(1) NAME ddate - converts Gregorian dates to Discordian dates SYNOPSIS ddate [+format] [date] DESCRIPTION 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 stan- dard 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: %A Full name of the day of the week (i.e., Sweetmorn) %a Abbreviated name of the day of the week (i.e., SM) %B Full name of the season (i.e., Chaos) %b Abbreviated name of the season (i.e., Chs) %d Ordinal number of day in season (i.e., 23) %e Cardinal number of day in season (i.e., 23rd) %H Name of current Holyday, if any %N Magic code to prevent rest of format from being printed unless today is a Holyday. %n Newline %t Tab %X Number of days remaining until X-Day. (Not valid if the SubGe- nius 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. EXAMPLES % 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. BUGS ddate(1) will produce undefined behaviour 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 %}. NOTE 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. AUTHOR Original program by Druel the Chaotic aka Jeremy Johnson (mpython@gnu.ai.mit.edu) Major rewrite by Lee H:. O:. Smith, KYTP, aka Andrew Bulhak (acb@dev.null.org) Five tons of flax. DISTRIBUTION POLICY Public domain. All rites reversed. SEE ALSO date(1), http://www.subgenius.com/ Malaclypse the Younger, Principia Discordia, Or How I Found Goddess And What I Did To Her When I Found Her AVAILABILITY The ddate command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/. 59 Bureaucracy 3161 DDATE(1)
コロナウイルスの日ごとの感染者数・死者数をグラフ化してみました。どの国が増加傾向にあり、どの国が終息に向かっているかを視覚化しています。
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa