mbgtools-lx
4.2.8
|
Go to the source code of this file.
Macros | |
#define | _MBGMKTM |
Functions | |
time_t | mbg_mktime (int year, int month, int day, int hour, int min, int sec) |
Compute a linear time_t value from broken down date and time. More... | |
Variables | |
static const char | Days [12] |
static int | YDays [12] |
time_t mbg_mktime | ( | int | year, |
int | month, | ||
int | day, | ||
int | hour, | ||
int | min, | ||
int | sec | ||
) |
Compute a linear time_t value from broken down date and time.
This function works like the standard mktime() function but does not account for a timezone setting configured for the standard C library. Also, it does not take a structure but a set of variables which makes it more versatile. The accepted variables are in the same ranges as the struct tm members used by mktime().
[in] | year | year number - 1900 |
[in] | month | months since January, 0..11 |
[in] | day | days after 1st, 0..30 |
[in] | hour | 0..23 |
[in] | min | 0..59 |
[in] | sec | 0..59, 60 if leap second |
Definition at line 61 of file mbgmktm.c.
Referenced by pcps_mktime(), and tm_gps_to_nano_time_64().
|
static |
Definition at line 30 of file mbgmktm.c.
Referenced by mbg_mktime().
|
static |
Definition at line 35 of file mbgmktm.c.
Referenced by mbg_mktime().