Standard C++ Library Reference ISO/IEC (VERSION3)
EST.
For a Sunday week of the year, week 1 begins with the first Sunday on or after 1 January. For a Monday week
of the year, week 1 begins with the first Monday on or after 1 January. An ISO 8601 week of the year is the
same as a Monday week of the year, with the following exceptions:
If 1 January is a Tuesday, Wednesday, or Thursday, the week number is one greater. Moreover, days
back to and including the immediately preceding Monday in the preceding year are included in week 1 of
the current year.
● 
If 1 January is a Friday, Saturday, or Sunday, days up to but not including the immediately following
Monday in the current year are included in the last week (52 or 53) of the preceding year.
● 
Conversion specifications marked with a + in the table below are all added with C99:
SPECIFIER FIELDS DESCRIPTION (EXAMPLE)
 %a tm_wday abbreviated weekday name (Sun)
 %A tm_wday full weekday name (Sunday)
 %b tm_mon abbreviated month name (Dec)
 %B tm_mon full month name (December)
 %c [all] date and time (Sun Dec 2 06:55:15 1979)
 %Ec [all] + era-specific date and time
 %C tm_year + year/100 (19)
 %EC tm_mday + era specific era name
 tm_mon
 tm_year
 %d tm_mday day of the month (02)
 %D tm_mday + month/day/year from 01/01/00 (12/02/79)
 tm_mon
 tm_year
 %e tm_mday + day of the month, leading space for zero ( 2)
 %F tm_mday + year-month-day (1979-12-02)
 tm_mon
 tm_year
 %g tm_wday + year for ISO 8601 week, from 00 (79)
 tm_yday
 tm_year
 %G tm_wday + year for ISO 8601 week, from 0000 (1979)
 tm_yday
 tm_year
 %h tm_mon + same as %b (Dec)
 %H tm_hour hour of the 24-hour day, from 00 (06)
 %I tm_hour hour of the 12-hour day, from 01 (06)
 %j tm_yday day of the year, from 001 (336)
 %m tm_mon month of the year, from 01 (12)
 %M tm_min minutes after the hour (55)
 %n + newline character \n
 %p tm_hour AM/PM indicator (AM)
 %r tm_sec + 12-hour time, from 01:00:00 AM (06:55:15 AM)
 tm_min
 tm_hour
 %Er tm_sec + era-specific date and 12-hour time
 tm_min
 tm_hour










