:: com :: sun :: star :: i18n ::

interface XCalendar4
Base Interfaces
XCalendar4XCalendar3XExtendedCalendarXCalendar

XCalendar3
(referenced interface's summary:)

Methods' Summary
setLocalDateTime Set the local date/time as an offset to the start of the calendar at 1-Jan-1970 00:00. The integer part represents the number of days passed since start date. The fractional part represents fractions of a day, thus 0.5 means 12 hours. The actual timezone and daylight saving time offsets effective at the given date and time are considered and subtracted before setting the UTC time at the calendar.  
getLocalDateTime Get the local date/time as an offset to the start of the calendar at 1-Jan-1970 00:00. The integer part represents the number of days passed since start date. The fractional part represents fractions of a day, thus 0.5 means 12 hours. The actual timezone and daylight saving time offsets effective at the given date and time are considered and added to the UTC time at the calendar.  
loadDefaultCalendarTZ Load the default calendar for the given locale with a given time zone.  
loadCalendarTZ Load a specific calendar for the given locale with a given time zone.  
Methods' Details
setLocalDateTime
void
setLocalDateTime( [in] double  TimeInDays );

Description
Set the local date/time as an offset to the start of the calendar at 1-Jan-1970 00:00. The integer part represents the number of days passed since start date. The fractional part represents fractions of a day, thus 0.5 means 12 hours. The actual timezone and daylight saving time offsets effective at the given date and time are considered and subtracted before setting the UTC time at the calendar.
getLocalDateTime
double
getLocalDateTime();

Description
Get the local date/time as an offset to the start of the calendar at 1-Jan-1970 00:00. The integer part represents the number of days passed since start date. The fractional part represents fractions of a day, thus 0.5 means 12 hours. The actual timezone and daylight saving time offsets effective at the given date and time are considered and added to the UTC time at the calendar.
loadDefaultCalendarTZ
void
loadDefaultCalendarTZ( [in] ::com::sun::star::lang::Locale  rLocale,
[in] string  TimeZone );

Description
Load the default calendar for the given locale with a given time zone.
Parameter rLocale
the locale for the calendar
Parameter TimeZone
If empty, the system's time zone is used. Else specified as "Region/City" name like "Europe/Berlin", or a custom time zone ID such as "UTC" or "GMT-8:00".
Since LibreOffice 6.3
loadCalendarTZ
void
loadCalendarTZ( [in] string  uniqueID,
[in] ::com::sun::star::lang::Locale  rLocale,
[in] string  TimeZone );

Description
Load a specific calendar for the given locale with a given time zone.
Parameter uniqueID
the uniqueID for the calendar. As of 2019-09-25, we can specify ROC, dangi, buddhist, gengou, gregorian, hanja, hanja_yoil, hijri, jewish. If the calendar for the specified uniqueID is not found, gregorian is used.
Parameter rLocale
the locale for the calendar
Parameter TimeZone
If empty, the system's time zone is used. Else specified as "Region/City" name like "Europe/Berlin", or a custom time zone ID such as "UTC" or "GMT-8:00".
Since LibreOffice 6.3
Top of Page