diff options
Diffstat (limited to 'include/tools/time.hxx')
-rw-r--r-- | include/tools/time.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/tools/time.hxx b/include/tools/time.hxx index 64751af42284..31a8f94d23b9 100644 --- a/include/tools/time.hxx +++ b/include/tools/time.hxx @@ -98,22 +98,22 @@ public: /// 12 hours == 0.5 days double GetTimeInDays() const; - sal_Bool IsBetween( const Time& rFrom, const Time& rTo ) const + bool IsBetween( const Time& rFrom, const Time& rTo ) const { return ((nTime >= rFrom.nTime) && (nTime <= rTo.nTime)); } - sal_Bool IsEqualIgnoreNanoSec( const Time& rTime ) const; + bool IsEqualIgnoreNanoSec( const Time& rTime ) const; - sal_Bool operator ==( const Time& rTime ) const + bool operator ==( const Time& rTime ) const { return (nTime == rTime.nTime); } - sal_Bool operator !=( const Time& rTime ) const + bool operator !=( const Time& rTime ) const { return (nTime != rTime.nTime); } - sal_Bool operator >( const Time& rTime ) const + bool operator >( const Time& rTime ) const { return (nTime > rTime.nTime); } - sal_Bool operator <( const Time& rTime ) const + bool operator <( const Time& rTime ) const { return (nTime < rTime.nTime); } - sal_Bool operator >=( const Time& rTime ) const + bool operator >=( const Time& rTime ) const { return (nTime >= rTime.nTime); } - sal_Bool operator <=( const Time& rTime ) const + bool operator <=( const Time& rTime ) const { return (nTime <= rTime.nTime); } static Time GetUTCOffset(); |