diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-06-04 12:32:37 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-06-04 12:32:37 +0100 |
| commit | 951572c6eb7e31834d2d7f1fbc67a9cdb1336696 (patch) | |
| tree | adfa99e08b52d759905499ffa2d5731c48ed8ac6 /src/dcp_time.cc | |
| parent | 73663040fef9ae613ce42e89d852a66cbbc81bf6 (diff) | |
to_* to as_* in a few method names.
Diffstat (limited to 'src/dcp_time.cc')
| -rw-r--r-- | src/dcp_time.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dcp_time.cc b/src/dcp_time.cc index 8e152ad2..d34804e9 100644 --- a/src/dcp_time.cc +++ b/src/dcp_time.cc @@ -240,7 +240,7 @@ dcp::operator/ (Time a, Time const & b) /** @return A string of the form h:m:s:e padded as in 00:00:00:000 */ string -Time::to_string () const +Time::as_string () const { stringstream str; str << setw(2) << setfill('0') << h << ":" @@ -251,13 +251,13 @@ Time::to_string () const } int64_t -Time::to_editable_units (int tcr_) const +Time::as_editable_units (int tcr_) const { return (int64_t(e) * float (tcr_ / tcr)) + int64_t(s) * tcr_ + int64_t(m) * 60 * tcr_ + int64_t(h) * 60 * 60 * tcr_; } double -Time::to_seconds () const +Time::as_seconds () const { return h * 3600 + m * 60 + s + double(e) / tcr; } |
