:: com :: sun :: star :: sheet :: addin ::

unpublished interface XDateFunctions
Usage Restrictions
not published
Description
* Interface with date functions.

Methods' Summary
getDiffWeeks calculates the number of weeks between two dates. 
getDiffMonths calculates the number of months between two dates. 
getDiffYears calculates the number of years between two dates. 
getIsLeapYear checks if a date is in a leap year. 
getDaysInMonth calculates the number of days in a month. 
getDaysInYear calculates the number of days in a year. 
getWeeksInYear calculates the number of weeks in a year. 
Methods' Details
getDiffWeeks
long
getDiffWeeks( [in] ::com::sun::star::beans::XPropertySet  xOptions,
[in] long  nStartDate,
[in] long  nEndDate,
[in] long  nMode )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
calculates the number of weeks between two dates.
getDiffMonths
long
getDiffMonths( [in] ::com::sun::star::beans::XPropertySet  xOptions,
[in] long  nStartDate,
[in] long  nEndDate,
[in] long  nMode )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
calculates the number of months between two dates.
getDiffYears
long
getDiffYears( [in] ::com::sun::star::beans::XPropertySet  xOptions,
[in] long  nStartDate,
[in] long  nEndDate,
[in] long  nMode )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
calculates the number of years between two dates.
getIsLeapYear
long
getIsLeapYear( [in] ::com::sun::star::beans::XPropertySet  xOptions,
[in] long  nDate )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
checks if a date is in a leap year.
getDaysInMonth
long
getDaysInMonth( [in] ::com::sun::star::beans::XPropertySet  xOptions,
[in] long  nDate )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
calculates the number of days in a month.
getDaysInYear
long
getDaysInYear( [in] ::com::sun::star::beans::XPropertySet  xOptions,
[in] long  nDate )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
calculates the number of days in a year.
getWeeksInYear
long
getWeeksInYear( [in] ::com::sun::star::beans::XPropertySet  xOptions,
[in] long  nDate )
raises( ::com::sun::star::lang::IllegalArgumentException );

Description
calculates the number of weeks in a year.
Top of Page