Example #1
0
/** Get the minute (0-60) of this time.
 * @return the minute
 */
int DateAndTime::minute() const
{
  return to_ptime().time_of_day().minutes();
}
Example #2
0
/** Get the seconds (0-60) of this time.
 * @return the second
 */
int DateAndTime::second() const
{
  return to_ptime().time_of_day().seconds();
}
Example #3
0
/** Get the hour (0-24) of this time.
 * @return the hour
 */
int DateAndTime::hour() const
{
  return to_ptime().time_of_day().hours();
}
Example #4
0
/** Get the day (of the month) of this date.
 * @return the day
 */
int DateAndTime::day() const
{
  return to_ptime().date().day();
}
Example #5
0
/** Get the month of this date.
 * @return the month
 */
int DateAndTime::month() const
{
  return to_ptime().date().month();
}
Example #6
0
/** Get the year of this date.
 * @return the year
 */
int DateAndTime::year() const
{
  return to_ptime().date().year();
}
Example #7
0
/** 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());
}