time.h library
#include <time.h>
Macros
- NULL
- CLOCKS_PER_SEC
The number per second of the value returned by the clock function.
Types
- clock_t
an arithmetic type capable of representing time
- time_t
an arithmetic type capable of representing time
Structure
struct tm
- int tm_sec;
seconds after the minute
- int tm_min;
minutes after the hour
- int tm_hour;
hours since midnight
- int tm_mday;
day of the month
- int tm_mon;
months since January
- int tm_year;
years since 1900
- int tm_wday;
days since Sunday
- int tm_yday;
days since January 1
- int tm_isdst;
Daylight Saving Time flag
Functions
- clock_t clock(void);
- double difftime(time_t time1, time_t time0);
- time_t mktime(struct tim *timeptr);
- time_t time(time_t *timer);
- char *asctime(const struct tm *timeptr);
- char *ctime(const time_t *timer);
- struct tm *gmtime(const time_t *timer);
- struct tm *localtime(const time_t *timer);
- size_t strftime(char *s, size_t maxsize, const char *format,
const struct tm *timeptr);