|
MentOS
0.8.0
The Mentoring Operating System
|
Clock functions. More...
Functions | |
| time_t | sys_time (time_t *time) |
| Returns the current time. More... | |
| time_t | difftime (time_t time1, time_t time2) |
| Return the difference between the two time values. More... | |
| static int | day_of_week (unsigned int y, unsigned int m, unsigned int d) |
| Computes day of week. More... | |
| tm_t * | localtime (const time_t *time) |
| The current time broken down into a tm_t structure. More... | |
Variables | |
| static const char * | str_weekdays [] |
| List of week days. More... | |
| static const char * | str_months [] |
| List of months. More... | |
Clock functions.
|
inlinestatic |
Computes day of week.
| y | Year |
| m | Month of year (in range 1 to 12) |
| d | Day of month (in range 1 to 31) |
Return the difference between the two time values.
| time1 | The first time value. |
| time2 | The second time value. |
The current time broken down into a tm_t structure.
| timep | A pointer to a variable holding the current time. |
Returns the current time.
| time | Where the time should be stored. |
|
static |
List of months.
|
static |
List of week days.