Lines Matching refs:year

472 	Constructs a BDate object with \c year \c month and \c day.
474 Please note that a date before 1.1.4713 BC, a date with year 0 and a date
477 that every passed year will be interpreted as is.
480 BDate::BDate(int32 year, int32 month, int32 day)
482 _SetDate(year, month, day);
498 archive->FindInt32("year", &fYear);
525 ret = into->AddInt32("year", fYear);
535 Please note that a date before 1.1.4713 BC, a date with year 0 and a date
559 BDate::IsValid(int32 year, int32 month, int32 day) const
561 // no year 0 in Julian and nothing before 1.1.4713 BC
562 if (year == 0 || year < -4713)
568 if (day < 1 || day > _DaysInMonth(year, month))
572 if (year == 1582 && month == 10 && day > 4 && day < 15)
622 Set the date to \c year \c month and \c day.
628 BDate::SetDate(int32 year, int32 month, int32 day)
630 return _SetDate(year, month, day);
635 This function sets the given \c year, \c month and \c day to the
637 invalid, the values will be set to -1 for \c month and \c day, the \c year
641 BDate::GetDate(int32* year, int32* month, int32* day)
643 if (year)
644 *year = fYear;
670 resulting year, so this function will then return the latest valid date.
691 resulting year, so this function will then return the latest valid date.
733 Returns the year fragment of the date. If the date is invalid, the function
839 Returns the day of the year in the range of 1 to 365 (366 in leap years). If
853 Returns true if the passed \c year is a leap year, otherwise false. If the
854 \c year passed is before 4713 BC, the result is undefined.
857 BDate::IsLeapYear(int32 year) const
859 if (year < 1582) {
860 if (year < 0)
861 year++;
862 return (year % 4) == 0;
864 return (year % 400 == 0) || (year % 4 == 0 && year % 100 != 0);
869 Returns the number of days in the year of the current date. If the date is
1065 int32 year = d - 4800 + (m / 10);
1066 if (year <= 0)
1067 year--;
1068 date.fYear = year;
1135 BDate::_SetDate(int32 year, int32 month, int32 day)
1141 bool valid = IsValid(year, month, day);
1144 fYear = year;
1153 BDate::_DaysInMonth(int32 year, int32 month) const
1155 if (month == 2 && IsLeapYear(year))
1169 int32 year = _year;
1170 if (year < 0) year++;
1173 int32 y = year + 4800 - a;
1177 if (year > 1582
1178 || (year == 1582 && month > 10)
1179 || (year == 1582 && month == 10 && day >= 15)) {
1182 } else if (year < 1582
1183 || (year == 1582 && month < 10)
1184 || (year == 1582 && month == 10 && day <= 4)) {