23#include <tools/datetime.hxx>
24#include <osl/diagnose.h>
35 css::util::Date aD = lhs.
getDate();
36 Date aDate(aD.Day, aD.Month, aD.Year);
62 OSL_FAIL(
"Error in enum values for date");
72 css::util::Date aD = lhs.
getDate();
73 return static_cast<sal_Int16
>(aD.Day);
81 css::util::Date aD = lhs.
getDate();
82 Date aDate(aD.Day, aD.Month, aD.Year);
91 css::util::Date aD = lhs.
getDate();
92 return static_cast<sal_Int16
>(aD.Month);
101 css::util::Date aD = lhs.
getDate();
102 Date aDate(aD.Day, aD.Month, aD.Year);
128 OSL_FAIL(
"Error in enum values for date");
139 css::util::Date aD = lhs.
getDate();
188 css::util::Date aD = lhs.
getDate();
189 if (aD.Month >= 4 && aD.Month < 7)
191 else if (aD.Month >= 7 && aD.Month < 10)
193 else if (aD.Month >= 10 && aD.Month <= 12)
200 if (lhs.empty() || lhs.size() > 2)
203 size_t nSize = lhs.size();
205 css::util::Date aD = lhs[nSize - 1].getDate();
206 Date aDate(aD.Day, aD.Month, aD.Year);
208 sal_Int16 nStartDay =
SUNDAY;
209 if (nSize == 2 && !lhs[0].isNull())
210 nStartDay = lhs[0].getInt16();
220 css::util::Date aD = lhs.
getDate();
229 css::util::Time aT = lhs.
getTime();
230 return static_cast<sal_Int16
>(aT.Hours);
238 css::util::Time aT = lhs.
getTime();
239 return static_cast<sal_Int16
>(aT.Minutes);
247 css::util::Time aT = lhs.
getTime();
248 return static_cast<sal_Int16
>(aT.Seconds);
css::util::DateTime GetUNODateTime() const
sal_uInt16 GetDayOfYear() const
sal_uInt16 GetWeekOfYear(DayOfWeek eStartDay=MONDAY, sal_Int16 nMinimumNumberOfDaysInWeek=4) const
css::util::Date GetUNODate() const
DayOfWeek GetDayOfWeek() const
css::util::Time getTime() const
css::util::Date getDate() const
virtual ORowSetValue operate(const std::vector< ORowSetValue > &lhs) const override
virtual ORowSetValue operate(const std::vector< ORowSetValue > &lhs) const override
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
virtual ORowSetValue operate(const std::vector< ORowSetValue > &lhs) const override
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
virtual ORowSetValue operate(const ORowSetValue &lhs) const override
virtual ORowSetValue operate(const std::vector< ORowSetValue > &lhs) const override
virtual ORowSetValue operate(const ORowSetValue &lhs) const override