<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><section><h1><code>strftime</code></h1><refs xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><ul xmlns="http://www.w3.org/1999/xhtml"><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> <cite>Man page of STRFTIME</cite>
(<time>2015-02-06 06:34:07 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://linuxjm.osdn.jp/html/LDP_man-pages/man3/strftime.3.html">https://linuxjm.osdn.jp/html/LDP_man-pages/man3/strftime.3.html</anchor-external></li></ul></refs><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="6" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[6]</anchor-end> 
<cite>strptime</cite>, <time>2023-11-25T07:48:54.000Z</time> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://pubs.opengroup.org/onlinepubs/9699919799/functions/strptime.html">https://pubs.opengroup.org/onlinepubs/9699919799/functions/strptime.html</anchor-external></p><section><h1>書式文字列の変数みたいの</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> 今のところ、信頼できる典拠で確認したものではありません。</p><table><tbody><tr><td>%A</td><td>1*ALPHA</td><td>曜日</td><td>Tuesday</td></tr><tr><td>%a</td><td>3ALPHA</td><td>曜日</td><td>Tue</td></tr><tr><td>%B</td><td>1*ALPHA</td><td>月</td><td>January</td></tr><tr><td>%b</td><td>3ALPHA</td><td>月</td><td>Jan</td></tr><tr><td>%c</td><td></td><td>%a %x %X</td></tr><tr><td>%D</td><td></td><td>%m/%d/%y</td></tr><tr><td>%D</td><td>2DIGIT</td><td>年上2桁</td><td>20</td></tr><tr><td>%d</td><td>2DIGIT</td><td>日</td><td>01</td></tr><tr><td>%e</td><td>SP DIGIT / 2DIGIT</td><td>日</td><td> 1</td></tr><tr><td>%H</td><td>2DIGIT</td><td>時(24)</td><td>01</td></tr><tr><td>%I</td><td>2DIGIT</td><td>時(12)</td><td>01</td></tr><tr><td>%j</td><td>3DIGIT</td><td>1月1日からの日数</td><td>001</td></tr><tr><td>%k</td><td>SP DIGIT / 2DIGIT</td><td>時</td><td> 1</td></tr><tr><td>%p</td><td>'AM'/'PM'</td><td>午前か午後か</td><td>AM</td></tr><tr><td>%M</td><td>2DIGIT</td><td>分</td><td>01</td></tr><tr><td>%m</td><td>2DIGIT</td><td>月</td><td>01</td></tr><tr><td>%n</td><td>LF</td><td>改行</td><td></td></tr><tr><td>%%</td><td>%</td><td>パーセント</td><td>%</td></tr><tr><td>%R</td><td></td><td>%H:%M</td></tr><tr><td>%r</td><td></td><td>%I:%M:%S %p</td></tr><tr><td>%S</td><td>2DIGIT</td><td>秒</td><td>01</td></tr><tr><td>%T</td><td></td><td>%H:%M:%S</td></tr><tr><td>%t</td><td>HT</td><td>水平タブ</td><td></td></tr><tr><td>%U</td><td>2DIGIT</td><td>週番号 (年初日曜日=01週第1日)</td></tr><tr><td>%W</td><td>2DIGIT</td><td>週番号 (年初月曜日=01週第1日)</td></tr><tr><td>%w</td><td>DIGIT</td><td>曜日 (日曜日=0)</td><td>2</td></tr><tr><td>%X</td><td></td><td>%H:%M:%S</td></tr><tr><td>%x</td><td></td><td>%m/%d/%y</td></tr><tr><td>%Y</td><td>4DIGIT</td><td>年</td><td>2002</td></tr><tr><td>%y</td><td>2DIGIT</td><td>年</td><td>02</td></tr><tr><td>%Z</td><td>3*ALPHA</td><td>時間帯</td><td>GMT</td></tr></tbody></table><ul><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> 信頼できる典拠って、 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ISO</anchor> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">C</anchor> とかかなあ?</li><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> <anchor-internal xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">&gt;&gt;1</anchor-internal> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">POSIX</anchor> かも? 詳しい人解説器本ぬ</li></ul><refs xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><ul xmlns="http://www.w3.org/1999/xhtml"><li>
<anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="398" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[398]</anchor-end> 
<cite>strftime</cite>, <time>2022-07-10T12:10:53.000Z</time> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://pubs.opengroup.org/onlinepubs/9699919799/functions/strftime.html">https://pubs.opengroup.org/onlinepubs/9699919799/functions/strftime.html</anchor-external></li><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="393" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[393]</anchor-end> 
<cite>Man page of <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">STRFTIME</anchor></cite>, <time>2022-06-24T07:08:55.000Z</time>, <time>2022-07-10T12:02:31.615Z</time> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://linuxjm.osdn.jp/html/LDP_man-pages/man3/strftime.3.html">https://linuxjm.osdn.jp/html/LDP_man-pages/man3/strftime.3.html</anchor-external></li></ul></refs></section><section><h1>POSIX 以外</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[7]</anchor-end> <cite>datetime — Basic date and time types — Python 3.12.0 documentation</cite>, <time>2023-11-25T06:32:46.000Z</time>, <time>2023-11-25T08:35:34.742Z</time> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior">https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[8]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Table Schemaの日時</anchor></p></section><section><h1><code>estrftime</code></h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="10" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[10]</anchor-end> 
<dfn><code>estrftime</code></dfn>
は、
<cite>Libeth</cite>
が実装している<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">エチオピア暦</anchor>対応の拡張です。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="9" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[9]</anchor-end> <cite>Calender Handling in Libeth 0.40</cite>, <time>2001-07-17T15:04:22.000Z</time>, <time>2025-08-27T08:50:38.413Z</time> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://libeth.sourceforge.net/0.40/Dates.html">https://libeth.sourceforge.net/0.40/Dates.html</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="11" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[11]</anchor-end> 
文脈: <code>LIVEGEEZ</code></p></section></section><section><h1><code>date</code></h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="5" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[5]</anchor-end> 
<cite>date</cite>, <time>2023-11-25T05:41:38.000Z</time> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://pubs.opengroup.org/onlinepubs/000095399/utilities/date.html#tag_04_33_05">https://pubs.opengroup.org/onlinepubs/000095399/utilities/date.html#tag_04_33_05</anchor-external></p></section><section><h1>2桁年号</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="137" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[137]</anchor-end> 
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">X/Open</anchor> の推奨:
00〜68 → +2000, 69〜99 → +1900 を推奨しているらしいです。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="536" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[536]</anchor-end> <cite>date</cite>, <time>2023-11-25T05:38:29.000Z</time>, <time>2023-11-25T05:38:30.007Z</time> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://pubs.opengroup.org/onlinepubs/000095399/utilities/date.html">https://pubs.opengroup.org/onlinepubs/000095399/utilities/date.html</anchor-external></p><blockquote><p><snip xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"></snip> If century is not specified, then values in the range [69,99] shall refer to years 1969 to 1999 inclusive, and values in the range [00,68] shall refer to years 2000 to 2068 inclusive.<snip xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"></snip></p><p><b>Note:</b></p><box xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" class="indent"><p xmlns="http://www.w3.org/1999/xhtml">It is expected that in a future version of IEEE Std 1003.1-2001 the default century inferred from a 2-digit year will change. (This would apply to all commands accepting a 2-digit year as input.) </p></box></blockquote></section><section><h1>関連</h1><p><sw-see xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"> <anchor>暦年週年バグ</anchor> </sw-see></p></section><section><h1>メモ</h1></section></body></html>