@parambTimeZoneUTC Default<TRUE/>.If<FALSE/>,thesystem'stimezoneisassigned tothecalendar,includingallDSTquirkslikenotexisting timesonDSTtransitiondateswhenswitchingto/fromDST.As currentimplementationsandnumberparser/formatterdon'tstore orconvertorcalculatewithtimezonesitissafertouseUTC, whichisnotDSTafflicted,otherwisesurprisesarelurking (forexampletdf#92503).
*/ void loadDefaultCalendar( const css::lang::Locale& rLocale, bool bTimeZoneUTC = true); /// This adds a bTimeZoneUTC parameter which is not part of the API. void loadCalendar( const OUString& rUniqueID, const css::lang::Locale& rLocale, bool bTimeZoneUTC = true );
/* XXX NOTE: the time zone taking UNO API functions are not implemented as *wrapperinterfaceastheyarenotnecessary/usedsofar.Theseare: voidloadDefaultCalendarTZ(constcss::lang::Locale&rLocale,constOUString&>rTimeZone); voidloadCalendarTZ(constOUString&rUniqueID,constcss::lang::Locale&rLocale,constOUString&rTimeZone);
*/
css::uno::Sequence< OUString > getAllCalendars( const css::lang::Locale& rLocale ) const;
OUString getUniqueID() const; /// set UTC date/time void setDateTime( double fTimeInDays ); /// get UTC date/time double getDateTime() const;
// For local setDateTime() and getDateTime() see further down at wrapper // implementations of XCalendar4.
/// set local date/time void setLocalDateTime( double fTimeInDays ); /// get local date/time double getLocalDateTime() const;
// convenience methods
/// get epoch start (should be 01Jan1970) const DateTime& getEpochStart() const
{ return aEpochStart; }
/// set a local (!) Gregorian DateTime void setGregorianDateTime( const DateTime& rDateTime )
{ setLocalDateTime( DateTime::Sub( rDateTime, aEpochStart)); }
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.