Namespaces
Variants
Views
Actions

std::tm

From cppreference.com
< cpp‎ | chrono‎ | c
Revision as of 17:42, 26 June 2013 by P12 (Talk | contribs)

struct tm;

Structure holding a calendar date and time broken down into its components.

Member objects

int tm_sec
seconds after the minute – [0, 60][note 1]
(public member object)
int tm_min
minutes after the hour – [0, 59]
(public member object)
int tm_hour
hours since midnight – [0, 23]
(public member object)
int tm_mday
day of the month – [1, 31]
(public member object)
int tm_mon
months since January – [0, 11]
(public member object)
int tm_year
years since 1900
(public member object)
int tm_wday
days since Sunday – [0, 6]
(public member object)
int tm_yday
days since January 1 – [0, 365]
(public member object)
int tm_isdst
Daylight Saving Time flag. The value is positive if DST is in effect, zero if not and negative if no information is available
(public member object)
Notes
  1. Range allows for a positive leap second.

See also

converts time since epoch to calendar time expressed as local time
(function) [edit]
converts time since epoch to calendar time expressed as Universal Coordinated Time
(function) [edit]