/** Get the minute (0-60) of this time. * @return the minute */ int DateAndTime::minute() const { return to_ptime().time_of_day().minutes(); }
/** Get the seconds (0-60) of this time. * @return the second */ int DateAndTime::second() const { return to_ptime().time_of_day().seconds(); }
/** Get the hour (0-24) of this time. * @return the hour */ int DateAndTime::hour() const { return to_ptime().time_of_day().hours(); }
/** Get the day (of the month) of this date. * @return the day */ int DateAndTime::day() const { return to_ptime().date().day(); }
/** Get the month of this date. * @return the month */ int DateAndTime::month() const { return to_ptime().date().month(); }
/** Get the year of this date. * @return the year */ int DateAndTime::year() const { return to_ptime().date().year(); }
/** Return the date and time as an ISO8601-formatted string * @return The ISO8601 string */ std::string DateAndTime::toISO8601String() const { return boost::posix_time::to_iso_extended_string(to_ptime()); }