diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/datetime/ttime.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/source/datetime/ttime.cxx b/tools/source/datetime/ttime.cxx index bf25206c0fbc..0b147b443c33 100644 --- a/tools/source/datetime/ttime.cxx +++ b/tools/source/datetime/ttime.cxx @@ -140,6 +140,14 @@ Time::Time( const Time& rTime ) Time::Time( sal_uInt32 nHour, sal_uInt32 nMin, sal_uInt32 nSec, sal_uInt64 nNanoSec ) { + init(nHour, nMin, nSec, nNanoSec); +} +Time::Time( const ::com::sun::star::util::Time &_rTime ) +{ + init(_rTime.Hours, _rTime.Minutes, _rTime.Seconds, _rTime.NanoSeconds); +} +void Time::init( sal_uInt32 nHour, sal_uInt32 nMin, sal_uInt32 nSec, sal_uInt64 nNanoSec ) +{ // normalize time nSec += nNanoSec / nanoSecInSec; nNanoSec %= nanoSecInSec; |