- the specified values is outside the normal range, the characters stored are unspecified.
- %a is replaced by the locale's abbreviated weekday name. [tm_wday]
- %A is replaced by the locale's full weekday name. [tm_wday]
- %b is replaced by the locale's abbreviated month name. [tm_mon]
- %B is replaced by the locale's full month name. [tm_mon]
- %c is replaced by the locale's appropriate date and time representation. [all specified
-<pre>
- in <a href="#7.23.1">7.23.1</a>]</pre>
- %C is replaced by the year divided by 100 and truncated to an integer, as a decimal
-<pre>
- number (00-99). [tm_year]</pre>
- %d is replaced by the day of the month as a decimal number (01-31). [tm_mday]
- %D is equivalent to ''%m/%d/%y''. [tm_mon, tm_mday, tm_year]
- %e is replaced by the day of the month as a decimal number (1-31); a single digit is
-<pre>
- preceded by a space. [tm_mday]</pre>
- %F is equivalent to ''%Y-%m-%d'' (the ISO 8601 date format). [tm_year, tm_mon,
-<pre>
- tm_mday]</pre>
- %g is replaced by the last 2 digits of the week-based year (see below) as a decimal
-<pre>
- number (00-99). [tm_year, tm_wday, tm_yday]</pre>
- %G is replaced by the week-based year (see below) as a decimal number (e.g., 1997).
-<pre>
- [tm_year, tm_wday, tm_yday]</pre>
- %h is equivalent to ''%b''. [tm_mon]
- %H is replaced by the hour (24-hour clock) as a decimal number (00-23). [tm_hour]
- %I is replaced by the hour (12-hour clock) as a decimal number (01-12). [tm_hour]
- %j is replaced by the day of the year as a decimal number (001-366). [tm_yday]
- %m is replaced by the month as a decimal number (01-12). [tm_mon]
- %M is replaced by the minute as a decimal number (00-59). [tm_min]
- %n is replaced by a new-line character.
- %p is replaced by the locale's equivalent of the AM/PM designations associated with a
-<pre>
- 12-hour clock. [tm_hour]</pre>
- %r is replaced by the locale's 12-hour clock time. [tm_hour, tm_min, tm_sec]
- %R is equivalent to ''%H:%M''. [tm_hour, tm_min]
- %S is replaced by the second as a decimal number (00-60). [tm_sec]
- %t is replaced by a horizontal-tab character.
- %T is equivalent to ''%H:%M:%S'' (the ISO 8601 time format). [tm_hour, tm_min,
-<!--page 357 indent 4-->
-<pre>
- tm_sec]</pre>
- %u is replaced by the ISO 8601 weekday as a decimal number (1-7), where Monday
-<pre>
- is 1. [tm_wday]</pre>
- %U is replaced by the week number of the year (the first Sunday as the first day of week
-<pre>
- 1) as a decimal number (00-53). [tm_year, tm_wday, tm_yday]</pre>
- %V is replaced by the ISO 8601 week number (see below) as a decimal number
-<pre>
- (01-53). [tm_year, tm_wday, tm_yday]</pre>
- %w is replaced by the weekday as a decimal number (0-6), where Sunday is 0.
-<pre>
- [tm_wday]</pre>
- %W is replaced by the week number of the year (the first Monday as the first day of
-<pre>
- week 1) as a decimal number (00-53). [tm_year, tm_wday, tm_yday]</pre>
- %x is replaced by the locale's appropriate date representation. [all specified in <a href="#7.23.1">7.23.1</a>]
- %X is replaced by the locale's appropriate time representation. [all specified in <a href="#7.23.1">7.23.1</a>]
- %y is replaced by the last 2 digits of the year as a decimal number (00-99).
-<pre>
- [tm_year]</pre>
- %Y is replaced by the year as a decimal number (e.g., 1997). [tm_year]
- %z is replaced by the offset from UTC in the ISO 8601 format ''-0430'' (meaning 4
-<pre>
- hours 30 minutes behind UTC, west of Greenwich), or by no characters if no time
- zone is determinable. [tm_isdst]</pre>
- %Z is replaced by the locale's time zone name or abbreviation, or by no characters if no
-<pre>
- time zone is determinable. [tm_isdst]</pre>
- %% is replaced by %.
-<p><!--para 4-->
- Some conversion specifiers can be modified by the inclusion of an E or O modifier
- character to indicate an alternative format or specification. If the alternative format or
- specification does not exist for the current locale, the modifier is ignored.
- %Ec is replaced by the locale's alternative date and time representation.
- %EC is replaced by the name of the base year (period) in the locale's alternative
-<pre>
- representation.</pre>
- %Ex is replaced by the locale's alternative date representation.
- %EX is replaced by the locale's alternative time representation.
- %Ey is replaced by the offset from %EC (year only) in the locale's alternative
-<pre>
- representation.</pre>
- %EY is replaced by the locale's full alternative year representation.
- %Od is replaced by the day of the month, using the locale's alternative numeric symbols
-<pre>
- (filled as needed with leading zeros, or with leading spaces if there is no alternative
- symbol for zero).</pre>
- %Oe is replaced by the day of the month, using the locale's alternative numeric symbols
-<pre>
- (filled as needed with leading spaces).</pre>
- %OH is replaced by the hour (24-hour clock), using the locale's alternative numeric
-<!--page 358 indent 4-->
-<pre>
- symbols.</pre>
- %OI is replaced by the hour (12-hour clock), using the locale's alternative numeric
-<pre>
- symbols.</pre>
- %Om is replaced by the month, using the locale's alternative numeric symbols.
- %OM is replaced by the minutes, using the locale's alternative numeric symbols.
- %OS is replaced by the seconds, using the locale's alternative numeric symbols.
- %Ou is replaced by the ISO 8601 weekday as a number in the locale's alternative
-<pre>
- representation, where Monday is 1.</pre>
- %OU is replaced by the week number, using the locale's alternative numeric symbols.
- %OV is replaced by the ISO 8601 week number, using the locale's alternative numeric
-<pre>
- symbols.</pre>
- %Ow is replaced by the weekday as a number, using the locale's alternative numeric
-<pre>
- symbols.</pre>
- %OW is replaced by the week number of the year, using the locale's alternative numeric
-<pre>
- symbols.</pre>
- %Oy is replaced by the last 2 digits of the year, using the locale's alternative numeric
-<p><!--para 5-->
-<pre>
- symbols.</pre>
+ the specified values is outside the normal range, the characters stored are unspecified.
+<dl>
+<dt> %a <dd> is replaced by the locale's abbreviated weekday name. [tm_wday]
+<dt> %A <dd> is replaced by the locale's full weekday name. [tm_wday]
+<dt> %b <dd> is replaced by the locale's abbreviated month name. [tm_mon]
+<dt> %B <dd> is replaced by the locale's full month name. [tm_mon]
+<dt> %c <dd> is replaced by the locale's appropriate date and time representation. [all specified
+ in <a href="#7.23.1">7.23.1</a>]
+<dt> %C <dd> is replaced by the year divided by 100 and truncated to an integer, as a decimal
+ number (00-99). [tm_year]
+<dt> %d <dd> is replaced by the day of the month as a decimal number (01-31). [tm_mday]
+<dt> %D <dd> is equivalent to ''%m/%d/%y''. [tm_mon, tm_mday, tm_year]
+<dt> %e <dd> is replaced by the day of the month as a decimal number (1-31); a single digit is
+ preceded by a space. [tm_mday]
+<dt> %F <dd> is equivalent to ''%Y-%m-%d'' (the ISO 8601 date format). [tm_year, tm_mon,
+ tm_mday]
+<dt> %g <dd> is replaced by the last 2 digits of the week-based year (see below) as a decimal
+ number (00-99). [tm_year, tm_wday, tm_yday]
+<dt> %G <dd> is replaced by the week-based year (see below) as a decimal number (e.g., 1997).
+ [tm_year, tm_wday, tm_yday]
+<dt> %h <dd> is equivalent to ''%b''. [tm_mon]
+<dt> %H <dd> is replaced by the hour (24-hour clock) as a decimal number (00-23). [tm_hour]
+<dt> %I <dd> is replaced by the hour (12-hour clock) as a decimal number (01-12). [tm_hour]
+<dt> %j <dd> is replaced by the day of the year as a decimal number (001-366). [tm_yday]
+<dt> %m <dd> is replaced by the month as a decimal number (01-12). [tm_mon]
+<dt> %M <dd> is replaced by the minute as a decimal number (00-59). [tm_min]
+<dt> %n <dd> is replaced by a new-line character.
+<dt> %p <dd> is replaced by the locale's equivalent of the AM/PM designations associated with a
+ 12-hour clock. [tm_hour]
+<dt> %r <dd> is replaced by the locale's 12-hour clock time. [tm_hour, tm_min, tm_sec]
+<dt> %R <dd> is equivalent to ''%H:%M''. [tm_hour, tm_min]
+<dt> %S <dd> is replaced by the second as a decimal number (00-60). [tm_sec]
+<dt> %t <dd> is replaced by a horizontal-tab character.
+<dt> %T <dd> is equivalent to ''%H:%M:%S'' (the ISO 8601 time format). [tm_hour, tm_min,
+<!--page 357 -->
+ tm_sec]
+<dt> %u <dd>is replaced by the ISO 8601 weekday as a decimal number (1-7), where Monday
+ is 1. [tm_wday]
+<dt> %U <dd> is replaced by the week number of the year (the first Sunday as the first day of week
+ 1) as a decimal number (00-53). [tm_year, tm_wday, tm_yday]
+<dt> %V <dd> is replaced by the ISO 8601 week number (see below) as a decimal number
+ (01-53). [tm_year, tm_wday, tm_yday]
+<dt> %w <dd> is replaced by the weekday as a decimal number (0-6), where Sunday is 0.
+ [tm_wday]
+<dt> %W <dd> is replaced by the week number of the year (the first Monday as the first day of
+ week 1) as a decimal number (00-53). [tm_year, tm_wday, tm_yday]
+<dt> %x <dd> is replaced by the locale's appropriate date representation. [all specified in <a href="#7.23.1">7.23.1</a>]
+<dt> %X <dd> is replaced by the locale's appropriate time representation. [all specified in <a href="#7.23.1">7.23.1</a>]
+<dt> %y <dd> is replaced by the last 2 digits of the year as a decimal number (00-99).
+ [tm_year]
+<dt> %Y <dd> is replaced by the year as a decimal number (e.g., 1997). [tm_year]
+<dt> %z <dd> is replaced by the offset from UTC in the ISO 8601 format ''-0430'' (meaning 4
+ hours 30 minutes behind UTC, west of Greenwich), or by no characters if no time
+ zone is determinable. [tm_isdst]
+<dt> %Z <dd> is replaced by the locale's time zone name or abbreviation, or by no characters if no
+ time zone is determinable. [tm_isdst]
+<dt> %% <dd> is replaced by %.
+</dl>
+<p><!--para 4 -->
+ Some conversion specifiers can be modified by the inclusion of an E or O modifier
+ character to indicate an alternative format or specification. If the alternative format or
+ specification does not exist for the current locale, the modifier is ignored.
+<dl>
+<dt> %Ec <dd> is replaced by the locale's alternative date and time representation.
+<dt> %EC <dd>is replaced by the name of the base year (period) in the locale's alternative
+ representation.
+<dt> %Ex <dd>is replaced by the locale's alternative date representation.
+<dt> %EX <dd>is replaced by the locale's alternative time representation.
+<dt> %Ey <dd>is replaced by the offset from %EC (year only) in the locale's alternative
+ representation.
+<dt> %EY <dd>is replaced by the locale's full alternative year representation.
+<dt> %Od <dd>is replaced by the day of the month, using the locale's alternative numeric symbols
+ (filled as needed with leading zeros, or with leading spaces if there is no alternative
+ symbol for zero).
+<dt> %Oe <dd>is replaced by the day of the month, using the locale's alternative numeric symbols
+ (filled as needed with leading spaces).
+<dt> %OH <dd>is replaced by the hour (24-hour clock), using the locale's alternative numeric
+<!--page 358 -->
+ symbols.
+<dt> %OI <dd>is replaced by the hour (12-hour clock), using the locale's alternative numeric
+ symbols.
+<dt> %Om <dd>is replaced by the month, using the locale's alternative numeric symbols.
+<dt> %OM <dd>is replaced by the minutes, using the locale's alternative numeric symbols.
+<dt> %OS <dd>is replaced by the seconds, using the locale's alternative numeric symbols.
+<dt> %Ou <dd>is replaced by the ISO 8601 weekday as a number in the locale's alternative
+ representation, where Monday is 1.
+<dt> %OU <dd>is replaced by the week number, using the locale's alternative numeric symbols.
+<dt> %OV <dd>is replaced by the ISO 8601 week number, using the locale's alternative numeric
+ symbols.
+<dt> %Ow <dd>is replaced by the weekday as a number, using the locale's alternative numeric
+ symbols.
+<dt> %OW <dd>is replaced by the week number of the year, using the locale's alternative numeric
+ symbols.
+<dt> %Oy <dd>is replaced by the last 2 digits of the year, using the locale's alternative numeric
+ symbols.
+</dl>
+<p><!--para 5 -->