|
clibs
Tiny but handy utility libraries for C
|
Common time operations. More...
#include <time.h>
Go to the source code of this file.
Functions | |
| struct tm | date_create (int year, int month, int day) |
| Create a date object. More... | |
| struct tm | time_create (int year, int month, int day, int hour, int min, int sec) |
| Create a time object. More... | |
Common time operations.
| struct tm date_create | ( | int | year, |
| int | month, | ||
| int | day | ||
| ) |
Create a date object.
| year | year in Gregorian calendar |
| month | from 1 to 12 |
| day | from 1 to 31 |
Time is kept at 9:00 AM.
| struct tm time_create | ( | int | year, |
| int | month, | ||
| int | day, | ||
| int | hour, | ||
| int | min, | ||
| int | sec | ||
| ) |
Create a time object.
| year | year in Gregorian calendar |
| month | from 1 to 12 |
| day | from 1 to 31 |
| hour | from 0 to 23 |
| min | from 0 to 59 |
| sec | from 0 to 59 |
1.8.13