45 int *second,
int *millisecond);
57 bool * has_explicit_msec,
bool * fits_as_timestamp,
char const **endp);
103 extern void julian_decode (
int jul,
int *monthp,
int *dayp,
int *yearp,
int *weekp);
void db_localtime(time_t *epoch_time, DB_DATE *date, DB_TIME *timeval)
int db_timestamp_encode_ses(const DB_DATE *date, const DB_TIME *timeval, DB_TIMESTAMP *utime, TZ_ID *dest_tz_id)
int db_check_time_date_format(const char *format_s)
int db_tm_encode(struct tm *c_time_struct, DB_DATE *date, DB_TIME *timeval)
int db_date_to_string(char *buf, int bufsize, DB_DATE *date)
int db_add_int_to_datetime(DB_DATETIME *datetime, DB_BIGINT i2, DB_DATETIME *result_datetime)
int db_string_to_datetimetz_ex(const char *str, int str_len, DB_DATETIMETZ *dt_tz, bool *has_zone)
int db_get_week_of_year(int year, int month, int day, int mode)
int db_time_to_string(char *buf, int bufsize, DB_TIME *dbtime)
int julian_encode(int m, int d, int y)
int db_datetime_to_string(char *buf, int bufsize, DB_DATETIME *datetime)
int db_timestamp_encode_sys(const DB_DATE *date, const DB_TIME *timeval, DB_TIMESTAMP *utime, TZ_ID *dest_tz_id)
int db_string_to_timestampltz(const char *str, DB_TIMESTAMP *ts)
bool is_leap_year(int year)
int db_string_to_timestampltz_ex(const char *str, int str_len, DB_TIMESTAMP *ts)
int db_string_to_datetime(const char *str, DB_DATETIME *datetime)
int db_string_to_date(const char *buf, DB_DATE *date)
int db_date_parse_time(char const *str, int str_len, DB_TIME *time, int *milisec)
int db_string_to_timestamptz_ex(const char *str, int str_len, DB_TIMESTAMPTZ *ts_tz, bool *has_zone, bool is_cast)
int db_timestamp_encode_utc(const DB_DATE *date, const DB_TIME *timeval, DB_TIMESTAMP *utime)
int db_timestamp_encode(DB_TIMESTAMP *utime, DB_DATE *date, DB_TIME *timeval)
int db_add_weeks_and_days_to_date(int *day, int *month, int *year, int weeks, int day_week)
int db_string_to_datetime_ex(const char *str, int str_len, DB_DATETIME *datetime)
void db_localdatetime(time_t *epoch_time, DB_DATETIME *datetime)
int db_date_weekday(DB_DATE *date)
unsigned int DB_TIMESTAMP
int db_string_to_timestamptz(const char *str, DB_TIMESTAMPTZ *ts_tz, bool *has_zone)
int db_string_to_time(const char *buf, DB_TIME *dbtime)
int db_subtract_int_from_datetime(DB_DATETIME *dt1, DB_BIGINT i2, DB_DATETIME *result_datetime)
void julian_decode(int jul, int *monthp, int *dayp, int *yearp, int *weekp)
void db_localdatetime_msec(time_t *epoch_time, int millisecond, DB_DATETIME *datetime)
int db_date_parse_datetime(char const *str, int str_len, DB_DATETIME *datetime)
int db_date_parse_timestamp(char const *str, int str_len, DB_TIMESTAMP *utime)
int db_datetimeltz_to_string(char *buf, int bufsize, DB_DATETIME *dt)
static enum scanner_mode mode
int db_timestamp_decode_w_reg(const DB_TIMESTAMP *utime, const TZ_REGION *tz_region, DB_DATE *date, DB_TIME *timeval)
int db_timestamp_decode_w_tz_id(const DB_TIMESTAMP *utime, const TZ_ID *tz_id, DB_DATE *date, DB_TIME *timeval)
int db_timestamptz_to_string(char *buf, int bufsize, DB_TIMESTAMP *utime, const TZ_ID *tz_id)
int db_timestamp_decode_ses(const DB_TIMESTAMP *utime, DB_DATE *date, DB_TIME *timeval)
bool db_string_check_explicit_time(const char *str, int str_len)
int db_string_to_time_ex(const char *buf, int buf_len, DB_TIME *dbtime)
int db_datetime_decode(const DB_DATETIME *datetime, int *month, int *day, int *year, int *hour, int *minute, int *second, int *millisecond)
int db_date_parse_date(char const *str, int str_len, DB_DATE *date)
int db_get_day_of_week(int year, int month, int day)
int db_datetime_encode(DB_DATETIME *datetime, int month, int day, int year, int hour, int minute, int second, int millisecond)
int db_timestampltz_to_string(char *buf, int bufsize, DB_TIMESTAMP *utime)
int db_date_parse_datetime_parts(char const *str, int str_len, DB_DATETIME *date, bool *is_explicit_time, bool *has_explicit_msec, bool *fits_as_timestamp, char const **endp)
int db_string_to_timestamp_ex(const char *buf, int buf_len, DB_TIMESTAMP *utime)
int db_string_to_datetimeltz_ex(const char *str, int str_len, DB_DATETIME *datetime)
int db_string_to_datetimetz(const char *str, DB_DATETIMETZ *dt_tz, bool *has_zone)
int db_get_day_of_year(int year, int month, int day)
int db_datetimetz_to_string(char *buf, int bufsize, DB_DATETIME *dt, const TZ_ID *tz_id)
void db_timestamp_decode_utc(const DB_TIMESTAMP *utime, DB_DATE *date, DB_TIME *timeval)
int db_timestamp_to_string(char *buf, int bufsize, DB_TIMESTAMP *utime)
int db_string_to_datetimeltz(const char *str, DB_DATETIME *datetime)
int db_string_to_date_ex(const char *buf, int str_len, DB_DATE *date)
bool db_string_check_explicit_date(const char *str, int str_len)
int db_strftime(char *s, int smax, const char *fmt, DB_DATE *date, DB_TIME *timeval)
int db_string_to_timestamp(const char *buf, DB_TIMESTAMP *utime)
int db_datetime_to_string2(char *buf, int bufsize, DB_DATETIME *datetime)
int day_of_week(int jul_day)
time_t db_mktime(DB_DATE *date, DB_TIME *timeval)