29#include <mstdlib/base/m_defs.h>
30#include <mstdlib/base/m_types.h>
182typedef struct M_time_tm M_time_localtm_t;
187typedef struct M_timeval {
885M_API
char *
M_time_to_str(const
char *fmt, const M_time_localtm_t *tm) M_WARN_NONNULL(1) M_WARN_NONNULL(2);
933M_API
char *
M_time_parsefmt(const
char *s, const
char *fmt, M_time_localtm_t *tm) M_WARN_NONNULL(2) M_WARN_NONNULL(3);
struct M_list_str M_list_str_t
Definition: m_list_str.h:80
M_int64 M_time_timeval_diff(const M_timeval_t *start_time, const M_timeval_t *end_time)
void M_time_elapsed_start(M_timeval_t *start_tv)
M_uint64 M_time_elapsed(const M_timeval_t *start_tv)
char * M_time_parsefmt(const char *s, const char *fmt, M_time_localtm_t *tm)
char * M_time_to_str(const char *fmt, const M_time_localtm_t *tm)
M_time_t M_time_from_str(const char *timestr, const M_time_tz_t *tz, M_bool default_end_of_day)
M_bool M_time_gettimeofday(M_timeval_t *tv)
int M_time_days_in_month(M_int64 year, M_int64 month)
M_time_t M_time_fromgm(M_time_gmtm_t *tm)
void M_time_tolocal(M_time_t t, M_time_localtm_t *ltime, const M_time_tz_t *tz)
M_bool M_time_is_valid_day(M_int64 year, M_int64 month, M_int64 day)
void M_time_normalize_tm(struct M_time_tm *tm)
void M_time_togm(M_time_t t, M_time_gmtm_t *tm)
M_time_t M_time_fromlocal(M_time_localtm_t *ltime, const M_time_tz_t *tz)
M_time_result_t M_time_tzs_add_win_zone(M_time_tzs_t *tzs, const char *name)
M_time_tzs_t * M_time_tzs_load_win_zones(M_uint32 zones, M_uint32 alias_f, M_uint32 flags)
M_time_result_t M_time_tzs_add_tzfile(M_time_tzs_t *tzs, const char *path, const char *name)
M_time_load_source_t M_time_tzs_load(M_time_tzs_t **tzs, M_uint32 zones, M_uint32 alias_f, M_uint32 flags)
const M_time_tz_t * M_time_tzs_get_tz(M_time_tzs_t *tzs, const char *name)
void M_time_tzs_destroy(M_time_tzs_t *tzs)
M_list_str_t * M_time_tzs_get_loaded_zones(const M_time_tzs_t *tzs)
M_time_tzs_t * M_time_tzs_create(void)
M_time_tzs_t * M_time_tzs_load_zoneinfo(const char *path, M_uint32 zones, M_uint32 alias_f, M_uint32 flags)
M_time_result_t M_time_tzs_add_posix_str(M_time_tzs_t *tzs, const char *str)
M_int64 isdst
Definition: m_time.h:176
M_int64 day
Definition: m_time.h:167
M_int64 month
Definition: m_time.h:166
M_int64 sec
Definition: m_time.h:172
M_int64 year
Definition: m_time.h:168
M_int64 hour
Definition: m_time.h:170
M_int64 min
Definition: m_time.h:171
char abbr[32]
Definition: m_time.h:178
M_suseconds_t tv_usec
Definition: m_time.h:189
M_time_t gmtoff
Definition: m_time.h:177
M_int64 wday
Definition: m_time.h:173
M_time_t tv_sec
Definition: m_time.h:188
M_int64 year2
Definition: m_time.h:169
M_int64 yday
Definition: m_time.h:174
M_time_tz_load_t
Definition: m_time.h:223
M_int64 M_time_t
Definition: m_time.h:161
struct M_time_tzs M_time_tzs_t
Definition: m_time.h:200
M_int64 M_suseconds_t
Definition: m_time.h:162
M_time_load_source_t
Definition: m_time.h:263
struct M_time_tz M_time_tz_t
Definition: m_time.h:195
M_time_tz_zones_t
Definition: m_time.h:206
M_time_result_t
Definition: m_time.h:244
M_time_tz_alias_t
Definition: m_time.h:234
@ M_TIME_TZ_LOAD_NORMAL
Definition: m_time.h:224
@ M_TIME_TZ_LOAD_LAZY
Definition: m_time.h:225
@ M_TIME_LOAD_SOURCE_FAIL
Definition: m_time.h:264
@ M_TIME_LOAD_SOURCE_SYSTEM
Definition: m_time.h:269
@ M_TIME_LOAD_SOURCE_FALLBACK
Definition: m_time.h:270
@ M_TIME_TZ_ZONE_ALL
Definition: m_time.h:207
@ M_TIME_TZ_ZONE_ANTARCTICA
Definition: m_time.h:210
@ M_TIME_TZ_ZONE_ASIA
Definition: m_time.h:212
@ M_TIME_TZ_ZONE_PACIFIC
Definition: m_time.h:217
@ M_TIME_TZ_ZONE_EUROPE
Definition: m_time.h:215
@ M_TIME_TZ_ZONE_ARCTIC
Definition: m_time.h:211
@ M_TIME_TZ_ZONE_ATLANTIC
Definition: m_time.h:213
@ M_TIME_TZ_ZONE_AMERICA
Definition: m_time.h:209
@ M_TIME_TZ_ZONE_ETC
Definition: m_time.h:218
@ M_TIME_TZ_ZONE_AUSTRALIA
Definition: m_time.h:214
@ M_TIME_TZ_ZONE_INDIAN
Definition: m_time.h:216
@ M_TIME_TZ_ZONE_AFRICA
Definition: m_time.h:208
@ M_TIME_RESULT_DATE
Definition: m_time.h:252
@ M_TIME_RESULT_YEAR
Definition: m_time.h:255
@ M_TIME_RESULT_SUCCESS
Definition: m_time.h:245
@ M_TIME_RESULT_TIME
Definition: m_time.h:253
@ M_TIME_RESULT_OFFSET
Definition: m_time.h:251
@ M_TIME_RESULT_INI
Definition: m_time.h:249
@ M_TIME_RESULT_DUP
Definition: m_time.h:248
@ M_TIME_RESULT_INVALID
Definition: m_time.h:246
@ M_TIME_RESULT_ABBR
Definition: m_time.h:250
@ M_TIME_RESULT_ERROR
Definition: m_time.h:247
@ M_TIME_RESULT_DSTABBR
Definition: m_time.h:256
@ M_TIME_RESULT_DATETIME
Definition: m_time.h:254
@ M_TIME_RESULT_DSTOFFSET
Definition: m_time.h:257
@ M_TIME_TZ_ALIAS_ALL
Definition: m_time.h:235
@ M_TIME_TZ_ALIAS_WINDOWS_MAIN
Definition: m_time.h:238
@ M_TIME_TZ_ALIAS_OLSON_ALL
Definition: m_time.h:237
@ M_TIME_TZ_ALIAS_WINDOWS_ALL
Definition: m_time.h:239
@ M_TIME_TZ_ALIAS_OLSON_MAIN
Definition: m_time.h:236