|
Tizen RT Libs&Environment
v1.0 D5
|
Provides APIs for Time. More...
|
Files | |
| file | time.h |
Data Structures | |
| struct | timespec |
| structure represents an elapsed time More... | |
| struct | timeval |
| structure represents an elapsed time More... | |
| struct | tm |
| Structure containing a calendar date and time. More... | |
| struct | itimerspec |
| Struct itimerspec is used to define settings for an interval timer. More... | |
Macros | |
| #define | EXTERN extern |
Provides APIs for Time.
| #define localtime | ( | c | ) | gmtime(c) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
| #define localtime_r | ( | c, | |
| r | |||
| ) | gmtime_r(c, r) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
Conversion Calendar/UTC.
based on algorithms from p. 604 of Seidelman, P. K. 1992. Explanatory Supplement to the Astronomical Almanac. University Science Books, Mill Valley.
| [in] | year | to change |
| [in] | month | to change |
| [in] | day | to change |
| EXTERN int clock_daysbeforemonth | ( | int | month, |
| bool | leapyear | ||
| ) |
Get the number of days that occurred before the beginning of the month.
| [in] | the | beginning of the month |
| [in] | leap | year |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
[SYSTEM CALL API]
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
[SYSTEM CALL API]
| EXTERN int clock_isleapyear | ( | int | year | ) |
Return true if the specified year is a leap year.
| [in] | year | to check whether a leap year or not |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
[SYSTEM CALL API]
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
high-resolution sleep
[SYSTEM CALL API]
| [in] | rqtp | The amount of time to be suspended from execution. |
| [in] | rmtp | If the rmtp argument is non-NULL, the timespec structure referenced by it is updated to contain the amount of time remaining in the interval (the requested time minus the time actually slept) |
| size_t strftime | ( | char * | s, |
| size_t | max, | ||
| FAR const char * | format, | ||
| FAR const struct tm * | tm | ||
| ) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
[SYSTEM CALL API]
| int timer_delete | ( | timer_t | timerid | ) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
[SYSTEM CALL API]
| int timer_gettime | ( | timer_t | timerid, |
| FAR struct itimerspec * | value | ||
| ) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
[SYSTEM CALL API]
| int timer_settime | ( | timer_t | timerid, |
| int | flags, | ||
| FAR const struct itimerspec * | value, | ||
| FAR struct itimerspec * | ovalue | ||
| ) |
POSIX APIs (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)
[SYSTEM CALL API]