2015-01-23 16:10:41 -06:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __com_sun_star_i18n_XCalendar4_idl__
|
|
|
|
#define __com_sun_star_i18n_XCalendar4_idl__
|
|
|
|
|
|
|
|
#include <com/sun/star/i18n/Calendar3.idl>
|
|
|
|
|
|
|
|
|
|
|
|
module com { module sun { module star { module i18n {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** This interface provides access to locale specific calendar
|
|
|
|
systems.
|
|
|
|
|
|
|
|
<p> It is derived from ::com::sun::star::i18n::XCalendar3 and
|
|
|
|
provides additional methods to set and get the local time. </p>
|
|
|
|
|
2015-04-10 04:50:37 -05:00
|
|
|
@since LibreOffice 5.0
|
2015-01-23 16:10:41 -06:00
|
|
|
*/
|
2015-01-26 11:43:01 -06:00
|
|
|
interface XCalendar4 : com::sun::star::i18n::XCalendar3
|
2015-01-23 16:10:41 -06:00
|
|
|
{
|
|
|
|
/** 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.
|
|
|
|
*/
|
|
|
|
void setLocalDateTime( [in] double TimeInDays );
|
|
|
|
|
|
|
|
/** 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.
|
|
|
|
*/
|
|
|
|
double getLocalDateTime();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}; }; }; };
|
|
|
|
|
|
|
|
#endif
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|