diff options
author | John Wiegley <johnw@newartisans.com> | 2004-08-04 03:12:26 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2004-08-04 03:12:26 -0400 |
commit | 1741c80fe4f9dd896d4c8912b2ba35b14500ca1c (patch) | |
tree | cfdcb49cc929b023b71ecd9e126eff4830d77a0c /datetime.h | |
parent | f570e6644fce27b612562282b11d00fd0691873d (diff) | |
download | fork-ledger-1741c80fe4f9dd896d4c8912b2ba35b14500ca1c.tar.gz fork-ledger-1741c80fe4f9dd896d4c8912b2ba35b14500ca1c.tar.bz2 fork-ledger-1741c80fe4f9dd896d4c8912b2ba35b14500ca1c.zip |
rewrote the way registers are computed -- again
Diffstat (limited to 'datetime.h')
-rw-r--r-- | datetime.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/datetime.h b/datetime.h new file mode 100644 index 00000000..6c9d001a --- /dev/null +++ b/datetime.h @@ -0,0 +1,19 @@ +#ifndef _DATETIME_H +#define _DATETIME_H + +#include "ledger.h" + +namespace ledger { + +extern bool parse_date_mask(const char * date_str, struct std::tm * result); + +extern bool parse_date(const char * date_str, std::time_t * result, + const int year = -1); + +extern bool quick_parse_date(char * date_str, std::time_t * result); + +extern struct std::tm * now_tm; + +} // namespace ledger + +#endif // _DATETIME_H |