diff options
author | John Wiegley <johnw@newartisans.com> | 2007-04-23 21:22:24 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:31 -0400 |
commit | 9039e728b2015b54dc87da52f450c27683303392 (patch) | |
tree | ac914e05db5dc03f6971cd8c165ee3791a614d18 /times.h | |
parent | 340dacf118f2f457ffc962cb46e8b3ef59017376 (diff) | |
download | fork-ledger-9039e728b2015b54dc87da52f450c27683303392.tar.gz fork-ledger-9039e728b2015b54dc87da52f450c27683303392.tar.bz2 fork-ledger-9039e728b2015b54dc87da52f450c27683303392.zip |
All system headers (except Boost) now included through system.hh;
also, added support for pre-compiled headers since I'm now using a
centralized resource for system headers.
Diffstat (limited to 'times.h')
-rw-r--r-- | times.h | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -1,16 +1,9 @@ #ifndef _TIMES_H #define _TIMES_H -#include <boost/date_time/posix_time/posix_time.hpp> -#include <boost/date_time/posix_time/posix_time_duration.hpp> -#include <boost/date_time/posix_time/posix_time_config.hpp> -#include <boost/date_time/local_time_adjustor.hpp> - -#include <ctime> -#include <string> -#include <iostream> +#include "utils.h" -#include "error.h" +#include <boost/date_time/posix_time/posix_time.hpp> namespace ledger { @@ -75,7 +68,7 @@ inline moment_t ptime_local_to_utc(const moment_t& when) { // instead, and then make these into private methods. inline moment_t ptime_from_local_date_string(const string& date_string) { return ptime_local_to_utc(moment_t(boost::gregorian::from_string(date_string), - time_duration())); + time_duration())); } inline moment_t ptime_from_local_time_string(const string& time_string) { |