diff options
| author | mikey <mikey@cinecert.com> | 2012-08-07 23:48:10 +0000 |
|---|---|---|
| committer | mikey <> | 2012-08-07 23:48:10 +0000 |
| commit | 3685d92a3d067b79d6059e178c3861230a1531bb (patch) | |
| tree | 97c5c181b1e0c978d18a406fe129dd7d0a0aa500 /src/KM_util.cpp | |
| parent | 5884edb3a008e6eb139e507091b18728152dd497 (diff) | |
version bump
Diffstat (limited to 'src/KM_util.cpp')
| -rwxr-xr-x | src/KM_util.cpp | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/KM_util.cpp b/src/KM_util.cpp index d585b32..803b0ed 100755 --- a/src/KM_util.cpp +++ b/src/KM_util.cpp @@ -812,7 +812,7 @@ Kumu::Timestamp::EncodeString(char* str_buf, ui32_t buf_len) const return str_buf; } -// +// ^(\d{4})-(\d{2})-(\d{2})(?:T(\d{2}):(\d{2})(?::(\d{2})(?:\.(\d+))?)?(?:([+-]\d{2}):(\d{2}))?)?$ bool Kumu::Timestamp::DecodeString(const char* datestr) { @@ -825,6 +825,9 @@ Kumu::Timestamp::DecodeString(const char* datestr) ui32_t char_count = 10; TAI::caltime YMDhms; + YMDhms.hour = 0; + YMDhms.minute = 0; + YMDhms.second = 0; YMDhms.offset = 0; YMDhms.date.year = atoi(datestr); YMDhms.date.month = atoi(datestr + 5); @@ -954,6 +957,15 @@ Kumu::Timestamp::GetCTime() const return m_Timestamp.x - ui64_C(4611686018427387914); } +// +void +Kumu::Timestamp::SetCTime(const ui64_t& ctime) +{ + m_Timestamp.x = ctime + ui64_C(4611686018427387914); +} + + + //------------------------------------------------------------------------------------------ |
