13#define timeForever 9223372036854775807LL
18#define timeS(s) timeFromSeconds(s)
23#define timeMS(ms) timeFromMsec(ms)
98_Success_(
return > 0) int64
timeLocal(int64 time, _Out_opt_ int64* offset);
114 return time / 1000000;
122 return seconds * 1000000;
150 int64 ret = (int64)ts->tv_sec * 1000000;
151 ret += ts->tv_nsec / 1000;
164 ts->tv_sec = time / 1000000;
165 ts->tv_nsec = (time % 1000000) * 1000;
180 int64 ret = (int64)ts->tv_sec * 1000000;
181 ret += ts->tv_nsec / 1000;
187 ret += 210866760000000000LL;
203 time -= 210866760000000000LL;
205 ts->tv_sec = time / 1000000;
206 ts->tv_nsec = (time % 1000000) * 1000;
218 int64 ret = (int64)tt * 1000000;
219 ret += 210866760000000000LL;
232 time -= 210866760000000000LL;
233 return (time_t)(time / 1000000);
int64 timeToMsec(int64 time)
int64 timeFromAbsTimespec(struct timespec *ts)
int64 timeFromMsec(int64 msec)
int64 timeFromSeconds(int64 seconds)
time_t timeToTimeT(int64 time)
int64 timeFromRelTimespec(struct timespec *ts)
int64 timeFromTimeT(time_t tt)
void timeToAbsTimespec(struct timespec *ts, int64 time)
int64 timeToSeconds(int64 time)
void timeToRelTimespec(struct timespec *ts, int64 time)
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)
int64 timeCompose(TimeParts *parts)
#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.