summaryrefslogtreecommitdiff
path: root/src/local_time.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-03-10 17:17:45 +0100
committerCarl Hetherington <cth@carlh.net>2020-03-10 17:17:45 +0100
commita818ea7b22fc3c669dea70f4104ab5d9ed50b642 (patch)
treebffbc738184c525564c751a5f039c19478c23af5 /src/local_time.h
parentd7e82f235998557e7529729d630762e309d1e654 (diff)
Add LocalTime::add_minutes.
Diffstat (limited to 'src/local_time.h')
-rw-r--r--src/local_time.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/local_time.h b/src/local_time.h
index 0b13985c..310c598c 100644
--- a/src/local_time.h
+++ b/src/local_time.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2014-2015 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2014-2020 Carl Hetherington <cth@carlh.net>
This file is part of libdcp.
@@ -41,7 +41,7 @@
#include <boost/date_time/posix_time/posix_time.hpp>
#include <string>
-class local_time_test;
+class local_time_basic_test;
namespace dcp {
@@ -84,15 +84,17 @@ public:
}
void add_months (int a);
+ void add_minutes (int a);
bool operator== (LocalTime const & other) const;
bool operator!= (LocalTime const & other) const;
bool operator< (LocalTime const & other) const;
private:
- friend class ::local_time_test;
+ friend class ::local_time_basic_test;
void set (struct tm const * tm);
+ void set (boost::posix_time::ptime);
void set_local_time_zone ();
/* Local time */