15#define timeForever 9223372036854775807LL
20#define timeS(s) timeFromSeconds(s)
25#define timeMS(ms) timeFromMsec(ms)
100_Success_(
return > 0) int64
timeLocal(int64 time, _Out_opt_ int64* offset);
116 return time / 1000000;
124 return seconds * 1000000;
152 int64 ret = (int64)ts->tv_sec * 1000000;
153 ret += ts->tv_nsec / 1000;
166 ts->tv_sec = time / 1000000;
167 ts->tv_nsec = (time % 1000000) * 1000;
182 int64 ret = (int64)ts->tv_sec * 1000000;
183 ret += ts->tv_nsec / 1000;
189 ret += 210866760000000000LL;
205 time -= 210866760000000000LL;
207 ts->tv_sec = time / 1000000;
208 ts->tv_nsec = (time % 1000000) * 1000;
220 int64 ret = (int64)tt * 1000000;
221 ret += 210866760000000000LL;
234 time -= 210866760000000000LL;
235 return (time_t)(time / 1000000);
int64 timeToMsec(int64 time)
int64 timeFromMsec(int64 msec)
int64 timeFromAbsTimespec(const struct timespec *ts)
int64 timeFromRelTimespec(const struct timespec *ts)
int64 timeFromSeconds(int64 seconds)
time_t timeToTimeT(int64 time)
int64 timeFromTimeT(time_t tt)
void timeToAbsTimespec(struct timespec *ts, int64 time)
int64 timeToSeconds(int64 time)
void timeToRelTimespec(struct timespec *ts, int64 time)
int64 timeCompose(const TimeParts *parts)
strref timeMonthName[]
Full names of months (indexed 1-12, index 0 is empty string)
WEEKDAYS
Days of the week (0-6)
int64 timeLocal(int64 time, int64 *offset)
bool timeDecompose(TimeParts *out, _In_range_(0, timeForever) int64 time)
strref timeDayAbbrev[]
Three-letter abbreviations of days of the week (indexed by WEEKDAYS enum)
strref timeMonthAbbrev[]
Three-letter abbreviations of months (indexed 1-12, index 0 is empty string)
strref timeDayName[]
Full names of days of the week (indexed by WEEKDAYS enum)
#define timeForever
Maximum representable time value (approximately year 294,276 CE)
Decomposed time structure with individual date/time components.
uint8 day
Day of month (1-31)
uint16 yday
Day of year (0-365)
uint8 minute
Minute (0-59)
uint8 second
Second (0-59)
int32 year
Year (negative for BCE, no year 0)
uint8 wday
Day of week (0-6, Sunday=0)
uint32 usec
Microseconds (0-999999)
Time manipulation and conversion functions.