template<class charT, class Parsable>
  unspecified
    parse(const charT* fmt, Parsable& tp);
template<class charT, class traits, class Alloc, class Parsable>
  unspecified
    parse(const basic_string<charT, traits, Alloc>& fmt, Parsable& tp);
template<class charT, class traits, class Alloc, class Parsable>
  unspecified
    parse(const charT* fmt, Parsable& tp,
          basic_string<charT, traits, Alloc>& abbrev);
template<class charT, class traits, class Alloc, class Parsable>
  unspecified
    parse(const basic_string<charT, traits, Alloc>& fmt, Parsable& tp,
          basic_string<charT, traits, Alloc>& abbrev);
template<class charT, class Parsable>
  unspecified
    parse(const charT* fmt, Parsable& tp, minutes& offset);
template<class charT, class traits, class Alloc, class Parsable>
  unspecified
    parse(const basic_string<charT, traits, Alloc>& fmt, Parsable& tp,
          minutes& offset);
template<class charT, class traits, class Alloc, class Parsable>
  unspecified
    parse(const charT* fmt, Parsable& tp,
          basic_string<charT, traits, Alloc>& abbrev, minutes& offset);
template<class charT, class traits, class Alloc, class Parsable>
  unspecified
    parse(const basic_string<charT, traits, Alloc>& fmt, Parsable& tp,
          basic_string<charT, traits, Alloc>& abbrev, minutes& offset);
| Flag | Parsed value | |
| %a | The locale's full or abbreviated case-insensitive weekday name. | |
| %A | Equivalent to %a. | |
| %b | The locale's full or abbreviated case-insensitive month name. | |
| %B | Equivalent to %b. | |
| %c | ||
| %C | ||
| %d | The day of the month as a decimal number. The modified command %Nd 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. | |
| %D | Equivalent to %m/%d/%y. | |
| %e | ||
| %F | ||
| %g | ||
| %G | ||
| %h | Equivalent to %b. | |
| %H | ||
| %I | ||
| %j | ||
| %m | ||
| %M | ||
| %n | ||
| %p | The locale's equivalent of the AM/PM designations associated with a 12-hour clock. | |
| %r | The locale's 12-hour clock time. | |
| %R | Equivalent to %H:%M. | |
| %S | The seconds as a decimal number. The modified command %NS 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. | |
| %t | Matches zero or one whitespace characters. | |
| %T | Equivalent to %H:%M:%S. | |
| %u | ||
| %U | 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 %NU 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. | |
| %V | ||
| %w | ||
| %W | 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 %NW 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. | |
| %x | ||
| %X | ||
| %y | 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 %Ny specifies
the maximum number of characters to read. If N is not specified, the default is 2. Leading zeroes are permitted but not required. | |
| %Y | ||
| %z | ||
| %Z | 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. |