Name
tm struct — Represents the parts of a date and time
Synopsis
struct tm {
int tm_sec; /* Seconds: 0-61 */
int tm_min; /* Minutes: 0-60 */
int tm_hour; /* Hours: 0-24 */
int tm_mday; /* Day of month: 1-31 */
int tm_mon; /* Month: 1-12 */
int tm_year; /* Years since 1900 */
int tm_wday; /* Days since Sunday: 0-6 */
int tm_yday; /* Days since January 1: 0-365 */
int tm_isdst; /* Daylight Savings Time */
}
The tm
structure stores
parts of a date and time. It is the same structure definition as
that found in <ctime>
. See
<ctime>
for details.
See Also
tm
struct in <ctime>
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.