diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-19 19:59:06 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-09-03 00:37:34 +0200 |
| commit | 3be2a770aabfe44d33f5f7509c89dce28cf9f50d (patch) | |
| tree | 6482b6b63fa70db89ebc84318df80af476b41383 /src/lib/dcpomatic_time.h | |
| parent | 999266e837240e7f7e888058fff948b1862cc89d (diff) | |
Add and use Time::negative().
Diffstat (limited to 'src/lib/dcpomatic_time.h')
| -rw-r--r-- | src/lib/dcpomatic_time.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/dcpomatic_time.h b/src/lib/dcpomatic_time.h index f79242161..8382a7d95 100644 --- a/src/lib/dcpomatic_time.h +++ b/src/lib/dcpomatic_time.h @@ -212,6 +212,10 @@ public: return ::ceil (_t * double(r) / HZ); } + bool negative() const { + return _t < 0; + } + /** Split a time into hours, minutes, seconds and frames. * @param r Frames per second. * @return Split time. |
