diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-12-23 01:05:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-12-23 01:05:49 +0100 |
| commit | 64e72c622be986c7272e938c2d3235c61abef402 (patch) | |
| tree | 6cece3eee55fd26a79b2aa3c7e618f55258bcefc /src/util.h | |
| parent | 2b5af718d2a1f5da548303c8531afe86fa82d2d8 (diff) | |
Add struct tm constructor for LocalTime, use it to tidy up
day_{greater,less}_than_or_equal and add add_months() method.
Diffstat (limited to 'src/util.h')
| -rw-r--r-- | src/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -76,8 +76,8 @@ extern xmlpp::Node* find_child (xmlpp::Node const * node, std::string name); extern std::string openjpeg_version(); extern std::string spaces (int n); extern void indent (xmlpp::Element* element, int initial); -extern bool day_less_than_or_equal (struct tm a, LocalTime b); -extern bool day_greater_than_or_equal (struct tm a, LocalTime b); +extern bool day_less_than_or_equal (LocalTime a, LocalTime b); +extern bool day_greater_than_or_equal (LocalTime a, LocalTime b); extern std::string unique_string (std::list<std::string> existing, std::string base); } |
