@paramnYear MUSTbe!=0.
*/
constexpr inline sal_Int32 YearToDays(sal_Int16 nYear)
{
assert(nYear != 0); auto val = [](int off, int y) { return off + y * 365 + y / 4 - y / 100 + y / 400; }; return nYear < 0 ? val(-366, nYear + 1) : val(0, nYear - 1);
}
/** Whether year is a leap year.
LeapyearsBCEare-1,-5,-9,... See https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar#Usage https://en.wikipedia.org/wiki/0_(year)#History_of_astronomical_usage
/** Whether date is a valid date.
*/
COMPHELPER_DLLPUBLIC bool isValidDate(sal_uInt16 nDay, sal_uInt16 nMonth, sal_Int16 nYear);
/** Obtain date for a days from zero value.
*/
COMPHELPER_DLLPUBLIC void convertDaysToDate(sal_Int32 nDays, sal_uInt16& rDay, sal_uInt16& rMonth,
sal_Int16& rYear);
/** Normalize date, i.e. add days or months to form a proper proleptic Gregoriancalendardate,unlessallvaluesare0.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.