#include <time.h>
#include "../common/common_utils.h"
#include "../common/platform.h"
Defines | |
#define | DOSTIME_STARTDATE 0x00210000L |
#define | DOSTIME(y, c, d, h, m, s) ( ((y) < 1980) ? DOSTIME_STARTDATE : (((W32)(y) - 1980) << 25) | ((W32)(c) << 21) | ((W32)(d) << 16) | ((W32)(h) << 11) | ((W32)(m) << 5) | ((W32)(s) >> 1) ) |
Convert the date y/n/d and time h:m:s to a four byte DOS date and time (date in high two bytes, time in low two bytes). | |
Functions | |
PUBLIC W32 | UnixTimeToDosTime (time_t *t) |
Converts Unix time_t into DOS format. |
#define DOSTIME | ( | y, | |||
c, | |||||
d, | |||||
h, | |||||
m, | |||||
s | ) | ( ((y) < 1980) ? DOSTIME_STARTDATE : (((W32)(y) - 1980) << 25) | ((W32)(c) << 21) | ((W32)(d) << 16) | ((W32)(h) << 11) | ((W32)(m) << 5) | ((W32)(s) >> 1) ) |
Convert the date y/n/d and time h:m:s to a four byte DOS date and time (date in high two bytes, time in low two bytes).
[in] | y | year. |
[in] | c | month. |
[in] | d | day. |
[in] | h | hour. |
[in] | m | minute. |
[in] | s | second. |
PUBLIC W32 UnixTimeToDosTime | ( | time_t * | t | ) |
Converts Unix time_t into DOS format.
[in] | t | unix time to convert. |