time.h
Overview
Related Modules:
Description:
Provides time-related structures and functions.
You can perform time-related management operations, including obtaining and setting broken-down time and system ticks, and manipulating timers.
Since:
1.0
Version:
1.0
Summary
Data Structures
Macros
Functions
time (time_t t) |
|
difftime (time_t time1, time_t time2) |
|
Converts the broken-down time in the tm structure into seconds. |
|
strftime (char restrict s, size_t n, const char restrict f, const struct tm restrict tm) |
Converts the broken-down time in the tm structure to a string in the required format. |
gmtime (const time_t t) |
struct tm Converts the number of seconds to the UTC time in the tm structure. |
localtime (const time_t t) |
struct tm Converts the number of seconds to the local time in the tm structure. |
Converts the broken-down time in the tm structure into a string. |
|
ctime (const time_t timep) |
|
strftime_l (char restrict s, size_t n, const char *restrict f, const struct tm __restrict tm, locale_t loc) |
Converts the broken-down time in the tm structure to a string in a specified programming language and format. |
struct tm Converts the number of seconds to the UTC time in the tm structure. (This function is reentrant.) |
|
localtime_r (const time_t restrict t, struct tm *restrict tm) |
struct tm Converts the number of seconds to the local time in the tm structure. (This function is reentrant.) |
Converts the broken-down time in the tm structure into a string. (This function is reentrant.) |
|
ctime_r (const time_t t, char buf) |
Converts the date and time into a string. (This function is reentrant.) |
nanosleep (const struct timespec tspec1, struct timespec tspec2) |
|
clock_getres (clockid_t id, struct timespec tspec) |
|
clock_gettime (clockid_t id, struct timespec tspec) |
|
clock_settime (clockid_t id, const struct timespec tspec) |
|
clock_nanosleep (clockid_t id, int flag, const struct timespec tspec1, struct timespec tspec2) |
Pauses the current thread until a specified time of a clock arrives. |
timer_create (clockid_t id, struct sigevent restrict evp, timer_t *restrict t) |
|
timer_delete (timer_t t) |
|
timer_settime (timer_t t, int flags, const struct itimerspec __restrict val, struct itimerspec __restrict old) |
|
timer_gettime (timer_t t, struct itimerspec tspec) |
|
timer_getoverrun (timer_t t) |
|
Converts a time string to the broken-down time in the tm structure. |
|
getdate (const char buf) |
struct tm Converts a time string to the broken-down time in the tm structure. |
stime (const time_t t) |
|
Converts the broken-down time in the tm structure to the number of seconds. |