MentOS
0.8.0
The Mentoring Operating System
|
Clock functions. More...
Functions | |
_syscall1 (time_t, time, time_t *, t) | |
Time function. | |
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... | |
size_t | strftime (char *str, size_t maxsize, const char *format, const tm_t *timeptr) |
Formats the time tm according to the format specification format and places the result in the character array s of size max. More... | |
_syscall2 (int, nanosleep, const struct timespec *, req, struct timespec *, rem) | |
nanosleep function. | |
Variables | |
static const char * | weekdays [] |
List of week days name. More... | |
static const char * | months [] |
List of months name. 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) |
The current time broken down into a tm_t structure.
timep | A pointer to a variable holding the current time. |
Formats the time tm according to the format specification format and places the result in the character array s of size max.
s | The destination buffer. |
max | The maximum length of the buffer. |
format | The buffer used to generate the time. |
tm | The broken-down time. |
|
static |
List of months name.
|
static |
List of week days name.