21#include <rtl/math.hxx>
22#include <com/sun/star/chart/TimeUnit.hpp>
49 aRet.
AddYears(
static_cast<sal_Int16
>(nYearDistance) );
58 return rD2 > aDMin && rD2 < aDMax;
66 return rD2 > aDMin && rD2 < aDMax;
71 if (std::isnan(fValue))
74 Date aDate(rNullDate); aDate.
AddDays(::rtl::math::approxFloor(fValue));
75 switch(TimeResolution)
77 case css::chart::TimeUnit::DAY:
79 case css::chart::TimeUnit::YEAR:
83 case css::chart::TimeUnit::MONTH:
88 return aDate - rNullDate;
void AddDays(sal_Int32 nAddDays)
sal_Int16 GetYear() const
void AddYears(sal_Int16 nAddYears)
void SetMonth(sal_uInt16 nNewMonth)
void AddMonths(sal_Int32 nAddMonths)
void SetDay(sal_uInt16 nNewDay)
sal_uInt16 GetMonth() const
static bool IsInSameMonth(const Date &rD1, const Date &rD2)
static Date GetDateSomeYearsAway(const Date &rD, sal_Int32 nYearDistance)
static bool IsInSameYear(const Date &rD1, const Date &rD2)
static Date GetDateSomeMonthsAway(const Date &rD, sal_Int32 nMonthDistance)
static double RasterizeDateValue(double fValue, const Date &rNullDate, tools::Long TimeResolution)
static bool IsLessThanOneYearAway(const Date &rD1, const Date &rD2)
static bool IsLessThanOneMonthAway(const Date &rD1, const Date &rD2)