summaryrefslogtreecommitdiff
path: root/src/dcp_time.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-03-28 21:19:29 +0100
committerCarl Hetherington <cth@carlh.net>2026-03-28 21:19:29 +0100
commit4f1309aec7787765d3a15853d55245a86e7501c9 (patch)
tree389feb020b690b1fdc026d27e4c4ee2f713c7ab8 /src/dcp_time.cc
parent1c42e6a464ad25a2230540f639fe513d2761d27d (diff)
Fix incorrect invalid FFOC check.
Diffstat (limited to 'src/dcp_time.cc')
-rw-r--r--src/dcp_time.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dcp_time.cc b/src/dcp_time.cc
index f08f2b1c..75986ae5 100644
--- a/src/dcp_time.cc
+++ b/src/dcp_time.cc
@@ -344,6 +344,14 @@ Time::as_string (Standard standard) const
int64_t
+Time::as_editable_units() const
+{
+ return int64_t(e) + int64_t(s) * tcr + int64_t(m) * 60 * tcr + int64_t(h) * 60 * 60 * tcr;
+
+}
+
+
+int64_t
Time::as_editable_units_floor (int tcr_) const
{
return floor(int64_t(e) * double(tcr_) / tcr) + int64_t(s) * tcr_ + int64_t(m) * 60 * tcr_ + int64_t(h) * 60 * 60 * tcr_;