summaryrefslogtreecommitdiff
path: root/datetime.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2006-08-21 02:39:33 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:32 -0400
commitdb0ef2e25731a824aa728315f2f7f6e8a41a5ddf (patch)
tree073a4ffe44699413d97e56bae001e2f69a8b9a04 /datetime.h
parentbec5f1c07af7948eb26a7cbafc6d191cfbb77d97 (diff)
downloadledger-db0ef2e25731a824aa728315f2f7f6e8a41a5ddf.tar.gz
ledger-db0ef2e25731a824aa728315f2f7f6e8a41a5ddf.tar.bz2
ledger-db0ef2e25731a824aa728315f2f7f6e8a41a5ddf.zip
*** empty log message ***
Diffstat (limited to 'datetime.h')
-rw-r--r--datetime.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/datetime.h b/datetime.h
index 8a5c5fc5..9463296f 100644
--- a/datetime.h
+++ b/datetime.h
@@ -155,6 +155,7 @@ inline date_t operator-(const date_t& left, const long days) {
inline std::ostream& operator<<(std::ostream& out, const date_t& moment) {
moment.write(out);
+ return out;
}
class datetime_error : public error {
@@ -250,6 +251,7 @@ inline std::ostream& operator<<(std::ostream& out,
std::strftime(buf, 63, (date_t::output_format + " %H:%M:%S").c_str(),
moment.localtime());
out << buf;
+ return out;
}
struct interval_t