summaryrefslogtreecommitdiff
path: root/src/local_time.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/local_time.h')
-rw-r--r--src/local_time.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/local_time.h b/src/local_time.h
index 7c91db3e..c76b876c 100644
--- a/src/local_time.h
+++ b/src/local_time.h
@@ -92,8 +92,10 @@ public:
, _offset(offset)
{}
- /** @return A string of the form 2013-01-05T18:06:59+04:00 or 2013-01-05T18:06:59.123+04:00 */
- std::string as_string (bool with_millisecond = false) const;
+ /** @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 */
std::string date () const;