convert to string
| 160 | |
| 161 | /// convert to string |
| 162 | std::string DateTime::toString() const { |
| 163 | const boost::posix_time::ptime pt(m_date.impl(), m_time.impl() - boost::posix_time::time_duration(utcOffsetHours(), utcOffsetMinutes(), 0, 0)); |
| 164 | return boost::posix_time::to_simple_string(pt); |
| 165 | } |
| 166 | |
| 167 | std::string DateTime::toISO8601() const { |
| 168 | // 20160713T160843-06:00 |