28 Duration(const ::DateTime& rStart, const ::DateTime& rEnd);
35 explicit Duration(
double fTimeInDays);
47 Duration(sal_Int32 nDays, sal_uInt32 nHours, sal_uInt32 nMinutes, sal_uInt32 nSeconds,
48 sal_uInt64 nNanoseconds);
50 bool IsNegative()
const {
return mnDays < 0 || maTime.GetTime() < 0; }
51 sal_Int32
GetDays()
const {
return mnDays; }
53 double GetInDays()
const {
return static_cast<double>(GetDays()) +
GetTime().GetTimeInDays(); }
56 operator bool()
const {
return maTime.GetTime() != 0 || mnDays != 0; }
65 Duration Mult(sal_Int32 nMult,
bool& rbOverflow)
const;
69 Duration(sal_Int32 nDays, sal_Int64 nTime);
72 void Normalize(sal_uInt64 nHours, sal_uInt64 nMinutes, sal_uInt64 nSeconds,
73 sal_uInt64 nNanoseconds,
bool bNegative);
77 void ApplyTime(sal_Int64 nNS);
81 void SetTimeDiff(
const Time& rStart,
const Time& rEnd);
Any GetTime(const OUString &val)