[tab:time.parse.spec] (original) (raw)
The locale's full or abbreviated case-insensitive weekday name.
The locale's full or abbreviated case-insensitive month name.
The locale's date and time representation.
The modified command %Ec interprets the locale's alternate date and time representation.
The century as a decimal number.
The modified command %_N_C specifies the maximum number of characters to read.
If N is not specified, the default is 2.
Leading zeroes are permitted but not required.
The modified command %EC interprets the locale's alternative representation of the century.
The day of the month as a decimal number.
The modified command %_N_d specifies the maximum number of characters to read.
If N is not specified, the default is 2.
Leading zeroes are permitted but not required.
The modified command %Od interprets the locale's alternative representation of the day of the month.
Equivalent to %d and can be modified like %d.
Equivalent to %Y-%m-%d.
If modified with a width N, the width is applied to only %Y.
The last two decimal digits of the calendar year, as specified in ISO 8601-1:2019 for the week calendar.
The modified command %_N_g specifies the maximum number of characters to read.
If N is not specified, the default is 2.
Leading zeroes are permitted but not required.
The calendar year as a decimal number, as specified in ISO 8601-1:2019 for the week calendar.
The modified command %_N_G specifies the maximum number of characters to read.
If N is not specified, the default is 4.
Leading zeroes are permitted but not required.
The hour (24-hour clock) as a decimal number.
The modified command %_N_H specifies the maximum number of characters to read.
If N is not specified, the default is 2.
Leading zeroes are permitted but not required.
The modified command %OH interprets the locale's alternative representation.
The hour (12-hour clock) as a decimal number.
The modified command %_N_I specifies the maximum number of characters to read.
If N is not specified, the default is 2.
Leading zeroes are permitted but not required.
The modified command %OIinterprets the locale's alternative representation.
If the type being parsed is a specialization of duration, a decimal number of days.
Otherwise, the day of the year as a decimal number.
January 1 is 1.
In either case, the modified command %_N_j specifies the maximum number of characters to read.
If N is not specified, the default is 3.
Leading zeroes are permitted but not required.
The month as a decimal number.
January is 1.
The modified command %_N_m specifies the maximum number of characters to read.
If N is not specified, the default is 2.
Leading zeroes are permitted but not required.
The modified command %Om interprets the locale's alternative representation.
The minutes as a decimal number.
The modified command %_N_M specifies the maximum number of characters to read.
If N is not specified, the default is 2.
Leading zeroes are permitted but not required.
The modified command %OM interprets the locale's alternative representation.
Matches one whitespace character.
[Note 1:
%n, %t, and a space can be combined to match a wide range of whitespace patterns.
For example,"%n " matches one or more whitespace characters, and"%n%t%t" matches one to three whitespace characters.
— _end note_]
The locale's equivalent of the AM/PM designations associated with a 12-hour clock.
The locale's 12-hour clock time.
The seconds as a decimal number.
The modified command %_N_S specifies the maximum number of characters to read.
If N is not specified, the default is 2 if the input time has a precision convertible to seconds.
Otherwise the default width is determined by the decimal precision of the input and the field is interpreted as a long double in a fixed format.
If encountered, the locale determines the decimal point character.
Leading zeroes are permitted but not required.
The modified command %OS interprets the locale's alternative representation.
Matches zero or one whitespace characters.
The calendar day of week as a decimal number (1-7), as specified in ISO 8601-1:2019, where Monday is 1.
The modified command %_N_u specifies the maximum number of characters to read.
If N is not specified, the default is 1.
Leading zeroes are permitted but not required.
The week number of the year as a decimal number.
The first Sunday of the year is the first day of week 01.
Days of the same year prior to that are in week 00.
The modified command %_N_U specifies the maximum number of characters to read.
If N is not specified, the default is 2.
Leading zeroes are permitted but not required.
The modified command %OU interprets the locale's alternative representation.
The calendar week of year as a decimal number, as specified in ISO 8601-1:2019 for the week calendar.
The modified command %_N_V specifies the maximum number of characters to read.
If N is not specified, the default is 2.
Leading zeroes are permitted but not required.
The weekday as a decimal number (0-6), where Sunday is 0.
The modified command %_N_w specifies the maximum number of characters to read.
If N is not specified, the default is 1.
Leading zeroes are permitted but not required.
The modified command %Ow interprets the locale's alternative representation.
The week number of the year as a decimal number.
The first Monday of the year is the first day of week 01.
Days of the same year prior to that are in week 00.
The modified command %_N_W specifies the maximum number of characters to read.
If N is not specified, the default is 2.
Leading zeroes are permitted but not required.
The modified command %OW interprets the locale's alternative representation.
The locale's date representation.
The modified command %Ex interprets the locale's alternate date representation.
The locale's time representation.
The modified command %EX interprets the locale's alternate time representation.
The last two decimal digits of the year.
If the century is not otherwise specified (e.g., with %C), values in the range [69, 99] are presumed to refer to the years 1969 to 1999, and values in the range [00, 68] are presumed to refer to the years 2000 to 2068.
The modified command %_N_y specifies the maximum number of characters to read.
If N is not specified, the default is 2.
Leading zeroes are permitted but not required.
The modified commands %Ey and %Oy interpret the locale's alternative representation.
The year as a decimal number.
The modified command %_N_Y specifies the maximum number of characters to read.
If N is not specified, the default is 4.
Leading zeroes are permitted but not required.
The modified command %EY interprets the locale's alternative representation.
The offset from UTC in the format [+|-]hh[mm].
For example -0430 refers to 4 hours 30 minutes behind UTC, and 04 refers to 4 hours ahead of UTC.
The modified commands %Ez and %Ozparse a : between the hours and minutes and render leading zeroes on the hour field optional:[+|-]h[h][:mm].
For example -04:30 refers to 4 hours 30 minutes behind UTC, and 4 refers to 4 hours ahead of UTC.
The time zone abbreviation or name.
A single word is parsed.
This word can only contain characters from the basic character set ([lex.charset]) that are alphanumeric, or one of'_', '/', '-', or '+'.
A % character is extracted.