This section describes facilities for keeping track of dates and times according to the Gregorian calendar.
There are three representations for date and time information:
time_tdata type) is a compact representation, typically giving the number of seconds elapsed since some implementation-specific base time.
struct timevaldata type) that includes fractions of a second. Use this time representation instead of ordinary calendar time when you need greater precision.
struct tmdata type) represents the date and time as a set of components specifying the year, month, and so on, for a specific time zone. This time representation is usually used in conjunction with formatting date and time values.
Go to the first, previous, next, last section, table of contents.