From 78db20ae144115e6eaea6e7bd239e0ec06baf082 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 11 Jan 2015 14:14:47 +0000 Subject: Add Time::to_seconds. --- src/dcp_time.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dcp_time.h') diff --git a/src/dcp_time.h b/src/dcp_time.h index 23f860cf..c7391e63 100644 --- a/src/dcp_time.h +++ b/src/dcp_time.h @@ -59,6 +59,8 @@ public: , tcr (tcr_) {} + Time (double seconds); + Time (std::string time, int tcr); int h; ///< hours @@ -68,6 +70,7 @@ public: int tcr; ///< timecode rate: the number of editable units per second. std::string to_string () const; + double to_seconds () const; int64_t to_editable_units (int tcr_) const; private: -- cgit v1.2.3