+ explicit LocalTime (struct tm tm);
+
+ /** Construct a LocalTime from a boost::posix_time::ptime using the local
+ * time zone
+ */
+ explicit LocalTime (boost::posix_time::ptime);
+
+ /** Construct a LocalTime from a boost::posix_time::ptime and a time zone offset */
+ LocalTime(boost::posix_time::ptime, UTCOffset offset);
+
+ /** @param s A string of the form 2013-01-05T18:06:59[.123][+04:00] */
+ explicit LocalTime (std::string s);
+
+ LocalTime(int year, int month, int day, int hour, int minute, UTCOffset offset)
+ : _year(year)
+ , _month(month)
+ , _day(day)
+ , _hour(hour)
+ , _minute(minute)
+ , _offset(offset)
+ {}
+
+ /** @return A string of the form 2013-01-05T18:06:59+04:00, 2013-01-05T18:06:59.123+04:00
+ * 2013-01-05T18:06:59 or 2013-01-05T18:06:59.123
+ */
+ std::string as_string(bool with_millisecond = false, bool with_timezone = true) const;
+
+ /** @return The date in the form YYYY-MM-DD */