Standard C++ Library Reference ISO/IEC (VERSION3)

tm_mday
tm_mon
tm_year
%R tm_min + hour:minute, from 01:00 (06:55)
tm_hour
%S tm_sec seconds after the minute (15)
%t + horizontal tab character \t
%T tm_sec + 24-hour time, from 00:00:00 (06:55:15)
tm_min
tm_hour
%u tm_wday + ISO 8601 day of the week, to 7 for Sunday (7)
%U tm_wday Sunday week of the year, from 00 (48)
tm_yday
%V tm_wday + ISO 8601 week of the year, from 01 (48)
tm_yday
tm_year
%w tm_wday day of the week, from 0 for Sunday (0)
%W tm_wday Monday week of the year, from 00 (48)
tm_yday
%x [all] date (02/12/79)
%Ex [all] + era-specific date
%X [all] time, from 00:00:00 (06:55:15)
%EX [all] + era-specific time
%y tm_year year of the century, from 00 (79)
%Ey tm_mday + year of the era
tm_mon
tm_year
%Y tm_year year (1979)
%EY tm_mday + era-specific era name and year of the era
tm_mon
tm_year
%z tm_isdst + time zone (hours east*100 + minutes), if any (-0500)
%Z tm_isdst time zone name, if any (EST)
%% percent character %
The current locale category LC_TIME can affect these replacement character sequences.
time
time_t time(time_t *tod);
If tod is not a null pointer, the function stores the current calendar time in *tod. The function returns the
current calendar time, if the target environment can determine it; otherwise, it returns -1.
time_t
typedef a-type time_t;
The type is the arithmetic type a-type of an object that you declare to hold the value returned by time. The
value represents calendar time.