namespace tools
{ /** Duration in days and time. Can be negative in which case days is 0 and time isnegativeorbothdaysandtimearenegative.
*/ class SAL_WARN_UNUSED TOOLS_DLLPUBLIC Duration
{ public:
Duration() {}
/** Assumes that DateTime are normalized and there are no Time out-of-range
field values. */
Duration(const ::DateTime& rStart, const ::DateTime& rEnd);
/** Time can be a limited duration as well. We don't cater for out-of-range
minutes and seconds values here though. */
Duration(const Time& rStart, const Time& rEnd);
/** Time can be a limited duration as well and can have out-of-range values,itwillbenormalized.SignofbothdaysandTimemustbeequal
unless one is 0. */
Duration(sal_Int32 nDays, const Time& rTime);
/** Individual time values can be out-of-range, all will be normalized. Additionally,theresultingtimeoverallhourvalueisnotrestricted tosal_uInt16likeitiswithTime,asvalues>=24flowoverintodays. ForanegativedurationonlyanegativenDayscanbegiven,thusa
negative duration of less than one day is not possible. */
Duration(sal_Int32 nDays, sal_uInt32 nHours, sal_uInt32 nMinutes, sal_uInt32 nSeconds,
sal_uInt64 nNanoseconds);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.