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