tm

From EDM2
Revision as of 11:26, 30 July 2017 by Ak120 (Talk | contribs)

Jump to: navigation, search

Time structure defined in time.h.

typedef struct _tm {
  int     tm_sec;    /*  Seconds after the minute (0 through 61). */
  int     tm_min;    /*  Minutes after the hour (0 through 59). */
  int     tm_hour;   /*  Hours since midnight (0 through 23). */
  int     tm_mday;   /*  Day of the month (1 through 31). */
  int     tm_mon;    /*  Months since January (0 through 11). */
  int     tm_year;   /*  Years since 1900. */
  int     tm_wday;   /*  Days since Sunday (0 through 6). */
  int     tm_yday;   /*  Days since January 1 (0 through 365). */
  int     tm_isdst;  /*  Daylight Saving Time flag. */
} tm;

typedef tm *ptm;

tm_sec (int)
Seconds after the minute (0 through 61).
tm_min (int)
Minutes after the hour (0 through 59).
tm_hour (int)
Hours since midnight (0 through 23).
tm_mday (int)
Day of the month (1 through 31).
tm_mon (int)
Months since January (0 through 11).
tm_year (int)
Years since 1900.
tm_wday (int)
Days since Sunday (0 through 6).
tm_yday (int)
Days since January 1 (0 through 365).
tm_isdst (int)
Daylight Saving Time flag.