diff options
author | Andris Zeila <andris.zeila@zabbix.com> | 2021-11-08 17:39:34 +0300 |
---|---|---|
committer | Andris Zeila <andris.zeila@zabbix.com> | 2021-11-08 17:39:34 +0300 |
commit | 597c8230cc66c28eafaa651b098f0b71d0f794dd (patch) | |
tree | 5d14eecfdeb84a341185714d870eec31dd7205a4 /include/common.h | |
parent | 653d3e82848935a88edaca38ac42bd90338e2046 (diff) |
........S. [ZBXNEXT-2579] added function to calculate iso week number
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index 09537183871..a39421df5b7 100644 --- a/include/common.h +++ b/include/common.h @@ -1189,6 +1189,7 @@ void zbx_setproctitle(const char *fmt, ...) __zbx_attr_format_printf(1, 2); double zbx_time(void); void zbx_timespec(zbx_timespec_t *ts); double zbx_current_time(void); +int zbx_is_leap_year(int year); void zbx_get_time(struct tm *tm, long *milliseconds, zbx_timezone_t *tz); long zbx_get_timezone_offset(time_t t, struct tm *tm); struct tm *zbx_localtime(const time_t *time, const char *tz); @@ -1710,6 +1711,8 @@ void zbx_tm_round_down(struct tm *tm, zbx_time_unit_t base); const char *zbx_timespec_str(const zbx_timespec_t *ts); +int zbx_get_week_number(const struct tm *tm); + zbx_time_unit_t zbx_tm_str_to_unit(const char *text); int zbx_tm_parse_period(const char *period, size_t *len, int *multiplier, zbx_time_unit_t *base, char **error); |