diff options
Diffstat (limited to 'ext/date/lib/timelib.h')
-rw-r--r-- | ext/date/lib/timelib.h | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/ext/date/lib/timelib.h b/ext/date/lib/timelib.h index db9a6b68dc..c97ae6623d 100644 --- a/ext/date/lib/timelib.h +++ b/ext/date/lib/timelib.h @@ -26,6 +26,8 @@ #define TIMELIB_NONE 0x00 #define TIMELIB_OVERRIDE_TIME 0x01 +#define TIMELIB_SPECIAL_WEEKDAY 0x01 + #ifndef LONG_MAX #define LONG_MAX 2147483647L #endif @@ -51,10 +53,10 @@ timelib_sll timelib_days_in_month(timelib_sll y, timelib_sll m); void timelib_isoweek_from_date(timelib_sll y, timelib_sll m, timelib_sll d, timelib_sll *iw, timelib_sll *iy); /* From parse_date.re */ -timelib_time *timelib_strtotime(char *s, int len, timelib_error_container **errors, timelib_tzdb *tzdb); +timelib_time *timelib_strtotime(char *s, int len, timelib_error_container **errors, const timelib_tzdb *tzdb); void timelib_fill_holes(timelib_time *parsed, timelib_time *now, int options); char *timelib_timezone_id_from_abbr(const char *abbr, long gmtoffset, int isdst); -timelib_tz_lookup_table *timelib_timezone_abbreviations_list(void); +const timelib_tz_lookup_table *timelib_timezone_abbreviations_list(void); /* From tm2unixtime.c */ void timelib_update_ts(timelib_time* time, timelib_tzinfo* tzi); @@ -67,14 +69,14 @@ void timelib_update_from_sse(timelib_time *tm); void timelib_set_timezone(timelib_time *t, timelib_tzinfo *tz); /* From parse_tz.c */ -int timelib_timezone_id_is_valid(char *timezone, timelib_tzdb *tzdb); -timelib_tzinfo *timelib_parse_tzfile(char *timezone, timelib_tzdb *tzdb); +int timelib_timezone_id_is_valid(char *timezone, const timelib_tzdb *tzdb); +timelib_tzinfo *timelib_parse_tzfile(char *timezone, const timelib_tzdb *tzdb); int timelib_timestamp_is_in_dst(timelib_sll ts, timelib_tzinfo *tz); timelib_time_offset *timelib_get_time_zone_info(timelib_sll ts, timelib_tzinfo *tz); timelib_sll timelib_get_current_offset(timelib_time *t); void timelib_dump_tzinfo(timelib_tzinfo *tz); -timelib_tzdb *timelib_builtin_db(void); -timelib_tzdb_index_entry *timelib_timezone_builtin_identifiers_list(int *count); +const timelib_tzdb *timelib_builtin_db(void); +const timelib_tzdb_index_entry *timelib_timezone_builtin_identifiers_list(int *count); /* From timelib.c */ timelib_tzinfo* timelib_tzinfo_ctor(); |