diff options
-rw-r--r-- | tools/source/datetime/ttime.cxx | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/tools/source/datetime/ttime.cxx b/tools/source/datetime/ttime.cxx index 86c64b0d6e04..f50500469b7a 100644 --- a/tools/source/datetime/ttime.cxx +++ b/tools/source/datetime/ttime.cxx @@ -2,9 +2,9 @@ * * $RCSfile: ttime.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: hr $ $Date: 2003-03-27 17:03:57 $ + * last change: $Author: hr $ $Date: 2003-07-16 17:15:04 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -208,6 +208,13 @@ Time::Time() // ----------------------------------------------------------------------- +Time::Time( const Time& rTime ) +{ + nTime = rTime.nTime; +} + +// ----------------------------------------------------------------------- + Time::Time( ULONG nHour, ULONG nMin, ULONG nSec, ULONG n100Sec ) { // Zeit normalisieren @@ -328,6 +335,14 @@ double Time::GetTimeInDays() const // ----------------------------------------------------------------------- +Time& Time::operator =( const Time& rTime ) +{ + nTime = rTime.nTime; + return *this; +} + +// ----------------------------------------------------------------------- + Time& Time::operator +=( const Time& rTime ) { nTime = Sec100ToTime( TimeToSec100( *this ) + |