29 #include <xlnt/xlnt_config.hpp> 30 #include <xlnt/utils/calendar.hpp> 66 static datetime from_iso_string(
const std::string &iso_string);
76 datetime(
int year_,
int month_,
int day_,
int hour_ = 0,
int minute_ = 0,
int second_ = 0,
int microsecond_ = 0);
87 std::string to_string()
const;
93 std::string to_iso_string()
const;
99 double to_number(
calendar base_date)
const;
117 int get_year()
const;
123 int get_month()
const;
135 int get_hour()
const;
141 int get_minute()
const;
147 int get_second()
const;
153 int get_microsecond()
const;
206 bool _is_null =
true;
bool is_null() const
Returns whether the date is in an empty/invalid state.
Definition: datetime.hpp:158
Enumerates the possible types a cell can be determined by it's current value.
Definition: cell.hpp:37
A time is a specific time of the day specified in terms of an hour, minute, second, and microsecond (0-999999). It can also be initialized as a fraction of a day using time::from_number.
Definition: time.hpp:38
bool operator==(std::nullptr_t, const cell &cell)
Returns true if this cell is uninitialized.
value is an ISO 8601 formatted date
A datetime is a combination of a date and a time. IMPORTANT: The datetime could be in an empty/invali...
Definition: datetime.hpp:41
A date is a specific day specified in terms of a year, month, and day. It can also be initialized as ...
Definition: date.hpp:39
calendar
An enumeration of possible base dates. Dates in Excel are stored as days since this base date...
Definition: calendar.hpp:35