JM プロジェクトは、主に Linux 関連のマニュアルページの日本語ページを翻訳・公開しています。
... ct max ], size_t max , const char *restrict format , const struct tm *restrict tm ); size_t strftime_l( size_t max; char s [restrict max ], size_t max , const char *restrict format , const struct tm *restrict tm , locale_t ... locale ); 説明 strftime () 関数 は、要素別の時刻 tm の内容を format で指定された書式指定にしたがって変換し、長さ max の文字列 s に書き込みます。要 ... このような別表現の例としては ja_JP glibc ロケールでの日本の元号 (訳注:「令和」「平成」など) によるカレンダー表記があります。 strftime_l () は strftime () と同じですが、現在のロケールではなく指定された locale を使用する点が異なります。 locale が無効な場合や ... ... > char *strptime(const char *restrict s , const char *restrict format , struct tm *restrict tm ); 説明 strptime () 関数は strftime (3) の逆関数である。 ポインター s が指す文字列を format で指定されたフォーマットを使って「要素別の時刻」に変換し、 tm が指 ... れます。glibc 2.1 からは 1969-2068 の範囲として解釈されます。 glibc での注意 一貫性を持たせるため、glibc では strptime () に strftime (3) と同じフォーマット文字をサポートさせようとしています。多くの場合、対応するフィールドが解釈されますが、 tm フィールドは ... の最終の週として、 次の週を第 1 週とします。 %z RFC-822/ISO 8601 標準タイムゾーンを指定します。 %Z タイムゾーン名。 同様に、 strftime (3) の GNU 版での拡張に対応するために、 %k は %H 、 %l は %I と等価に扱われます。また、 %P は %p と等価に扱われます。さらに ... ... ストを得るには、"locale -m" を実行するとよい。 参考: locale (1) D_T_FMT (LC_TIME) ロケール固有の時間と日付を表現するときに、 strftime (3) で使用できる書式付き文字列を返す。 D_FMT (LC_TIME) ロケール固有の日付を表現するときに、 strftime (3) で使用できる書式付 ... き文字列を返す。 T_FMT (LC_TIME) ロケール固有の時間を表現するときに、 strftime (3) で使用できる書式付き文字列を返す。 DAY_ {1-7} (LC_TIME) 曜日名 (週の n 番目の日の名前) を返す。[警告: この要素はアメリ ... ... ストを得るには、"locale -m" を実行するとよい。 参考: locale (1) D_T_FMT (LC_TIME) ロケール固有の時間と日付を表現するときに、 strftime (3) で使用できる書式付き文字列を返す。 D_FMT (LC_TIME) ロケール固有の日付を表現するときに、 strftime (3) で使用できる書式付 ... き文字列を返す。 T_FMT (LC_TIME) ロケール固有の時間を表現するときに、 strftime (3) で使用できる書式付き文字列を返す。 DAY_ {1-7} (LC_TIME) 曜日名 (週の n 番目の日の名前) を返す。[警告: この要素はアメリ ... ... 定する。 mon 月の名前のリストを指定する。 d_t_fmt 適切な日付け (date) と時刻 (time) のフォーマットを指定する (書式については strftime (3) を参照)。 d_fmt followed by the appropriate date format (for syntax, see strftime (3)). t_fmt 適切な時刻のフォーマット ... を指定する (書式については strftime (3) を参照)。 am_pm それぞれ 午前 (am) と 午後 (pm) に対応する文字列を指定する。 AM/PM を使う慣習がないロケールでは、このフ ... ィールドは空にすべきである。 t_fmt_ampm 12 時間時計を使う際に使用する時刻形式を指定する (書式については strftime (3) を参照)。 午前/午後の表記を使用しないロケールではこのフィールドは空にすること。 era followed by semicolon-separated st ... ... e () C89, POSIX.1-1988. asctime () ctime () C89, POSIX.1-1988. Marked obsolescent in C23 and in POSIX.1-2008 (recommending strftime (3)). gmtime_r () localtime_r () POSIX.1-1996. asctime_r () ctime_r () POSIX.1-1996. Marked obsolescent in POSIX.1-2008. R ... emoved in POSIX.1-2024 (recommending strftime (3)). CAVEATS Thread safety asctime (), ctime (), gmtime (), localtime () の 4 つの関数は静的データへのポインターを返すので ... return t; } out: errno = e; return t; } 関連項目 date (1), gettimeofday (2), time (2), utime (2), clock (3), difftime (3), strftime (3), strptime (3), timegm (3), tzset (3), time (7) ... ... e () C89, POSIX.1-1988. asctime () ctime () C89, POSIX.1-1988. Marked obsolescent in C23 and in POSIX.1-2008 (recommending strftime (3)). gmtime_r () localtime_r () POSIX.1-1996. asctime_r () ctime_r () POSIX.1-1996. Marked obsolescent in POSIX.1-2008. R ... emoved in POSIX.1-2024 (recommending strftime (3)). CAVEATS Thread safety asctime (), ctime (), gmtime (), localtime () の 4 つの関数は静的データへのポインターを返すので ... return t; } out: errno = e; return t; } 関連項目 date (1), gettimeofday (2), time (2), utime (2), clock (3), difftime (3), strftime (3), strptime (3), timegm (3), tzset (3), time (7) ... ... e () C89, POSIX.1-1988. asctime () ctime () C89, POSIX.1-1988. Marked obsolescent in C23 and in POSIX.1-2008 (recommending strftime (3)). gmtime_r () localtime_r () POSIX.1-1996. asctime_r () ctime_r () POSIX.1-1996. Marked obsolescent in POSIX.1-2008. R ... emoved in POSIX.1-2024 (recommending strftime (3)). CAVEATS Thread safety asctime (), ctime (), gmtime (), localtime () の 4 つの関数は静的データへのポインターを返すので ... return t; } out: errno = e; return t; } 関連項目 date (1), gettimeofday (2), time (2), utime (2), clock (3), difftime (3), strftime (3), strptime (3), timegm (3), tzset (3), time (7) ... ... e () C89, POSIX.1-1988. asctime () ctime () C89, POSIX.1-1988. Marked obsolescent in C23 and in POSIX.1-2008 (recommending strftime (3)). gmtime_r () localtime_r () POSIX.1-1996. asctime_r () ctime_r () POSIX.1-1996. Marked obsolescent in POSIX.1-2008. R ... emoved in POSIX.1-2024 (recommending strftime (3)). CAVEATS Thread safety asctime (), ctime (), gmtime (), localtime () の 4 つの関数は静的データへのポインターを返すので ... return t; } out: errno = e; return t; } 関連項目 date (1), gettimeofday (2), time (2), utime (2), clock (3), difftime (3), strftime (3), strptime (3), timegm (3), tzset (3), time (7) ... ... fety MT-Safe 標準 なし。 履歴 SunOS 4.x. これは互換用の関数に過ぎません。新しいプログラムでは使わないでください。 関連項目 strftime (3) ... 日本語の文書やマニュアルを配布している個人/プロジェクトへのリンクです。