summaryrefslogtreecommitdiff
path: root/times.h
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2007-04-23 04:42:44 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 03:38:30 -0400
commit6853db57e6fdb6fd95764be1f35af0006c9e2ef9 (patch)
treebf24550cbc6053c51bf2f3fdcf27f39a4c989f24 /times.h
parentbe9f18ccfe81acdd2f34b27352f2843235fab69b (diff)
downloadfork-ledger-6853db57e6fdb6fd95764be1f35af0006c9e2ef9.tar.gz
fork-ledger-6853db57e6fdb6fd95764be1f35af0006c9e2ef9.tar.bz2
fork-ledger-6853db57e6fdb6fd95764be1f35af0006c9e2ef9.zip
All tests now working again. Reduced size of entity_t and
transaction_t considerably.
Diffstat (limited to 'times.h')
-rw-r--r--times.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/times.h b/times.h
index 6e5dbd83..fab13474 100644
--- a/times.h
+++ b/times.h
@@ -83,11 +83,10 @@ inline moment_t ptime_from_local_time_string(const string& time_string) {
}
#endif
-moment_t parse_datetime(std::istream& in);
+moment_t parse_datetime(const char * str);
inline moment_t parse_datetime(const string& str) {
- std::istringstream instr(str);
- return parse_datetime(instr);
+ return parse_datetime(str.c_str());
}
extern ptime time_now;