26#ifndef ROUTER_SRC_JIT_EXECUTOR_SRC_OBJECTS_POLYGLOT_DATE_H_
27#define ROUTER_SRC_JIT_EXECUTOR_SRC_OBJECTS_POLYGLOT_DATE_H_
40 Date(
int year,
int month,
int day,
int hour,
int min,
int sec,
int usec);
41 Date(
int hour,
int min,
int sec,
int usec);
42 Date(
int year,
int month,
int day);
44 std::string
class_name()
const override {
return "Date"; }
46 std::string &
append_descr(std::string &s_out,
int indent = -1,
47 int quote_strings = 0)
const override;
48 std::string &
append_repr(std::string &s_out)
const override;
54 int64_t
as_ms()
const;
Definition: utils_json.h:49
Definition: polyglot_date.h:37
std::string class_name() const override
Definition: polyglot_date.h:44
bool has_time() const
Definition: polyglot_date.h:64
int get_month() const
Definition: polyglot_date.h:57
int _hour
Definition: polyglot_date.h:77
void validate()
Definition: polyglot_date.cc:221
int _min
Definition: polyglot_date.h:78
std::string & append_repr(std::string &s_out) const override
Definition: polyglot_date.cc:133
int _sec
Definition: polyglot_date.h:79
int _usec
Definition: polyglot_date.h:80
bool _has_date
Definition: polyglot_date.h:82
int _day
Definition: polyglot_date.h:76
void append_json(shcore::JSON_dumper &dumper) const override
Definition: polyglot_date.cc:137
static Date from_ms(int64_t ms_since_epoch)
Definition: polyglot_date.cc:206
int get_sec() const
Definition: polyglot_date.h:61
bool has_date() const
Definition: polyglot_date.h:65
static Date unrepr(const std::string &s)
Definition: polyglot_date.cc:165
int get_year() const
Definition: polyglot_date.h:56
int get_usec() const
Definition: polyglot_date.h:62
int get_day() const
Definition: polyglot_date.h:58
virtual bool operator==(const Object_bridge &other) const
Definition: polyglot_date.cc:92
int get_min() const
Definition: polyglot_date.h:60
int _year
Definition: polyglot_date.h:74
int64_t as_ms() const
Definition: polyglot_date.cc:191
int _month
Definition: polyglot_date.h:75
Date(const Date &date)
Definition: polyglot_date.cc:38
int get_hour() const
Definition: polyglot_date.h:59
bool _has_time
Definition: polyglot_date.h:81
std::string & append_descr(std::string &s_out, int indent=-1, int quote_strings=0) const override
Definition: polyglot_date.cc:107
Definition: polyglot_object_bridge.h:38
static struct my_cs_file_section_st sec[]
Definition: ctype.cc:168
Definition: file_system_exceptions.h:34