Lines Matching refs:day

478 	Constructs a BDate object with \c year \c month and \c day.
486 BDate::BDate(int32 year, int32 month, int32 day)
488 _SetDate(year, month, day);
520 archive->FindInt32("day", &fDay);
546 status_t ret = into->AddInt32("day", fDay);
582 BDate::IsValid(int32 year, int32 month, int32 day)
591 if (day < 1 || day > _DaysInMonth(year, month))
595 if (year == 1582 && month == 10 && day > 4 && day < 15)
634 Set the date to \c year \c month and \c day.
640 BDate::SetDate(int32 year, int32 month, int32 day)
642 return _SetDate(year, month, day);
647 This function sets the given \c year, \c month and \c day to the
649 invalid, the values will be set to -1 for \c month and \c day, the \c year
653 BDate::GetDate(int32* year, int32* month, int32* day) const
661 if (day)
662 *day = fDay;
681 The day/ month combination will be adjusted if it does not exist in the
702 The day/ month combination will be adjusted if it does not exist in the
734 Returns the day fragment of the date. The return value will be in the range
779 BDate::SetDay(int32 day)
781 fDay = day;
860 Returns the day of the week in the range of 1 to 7, while 1 stands for
872 Returns the day of the year in the range of 1 to 365 (366 in leap years). If
941 Returns the short day name of this object.
951 Returns the short day name in case of an valid day, otherwise an empty
952 string. The passed \c day must be in the range of 1 to 7 while 1 stands for
956 BDate::ShortDayName(int32 day)
958 if (day < 1 || day > 7)
963 tm_struct.tm_wday = day == 7 ? 0 : day;
1004 Returns the long day name of this object's week day.
1014 Returns the long day name in case of an valid day, otherwise an empty
1015 string. The passed \c day must be in the range of 1 to 7 while 1 stands for
1019 BDate::LongDayName(int32 day)
1021 if (day < 1 || day > 7)
1027 if (format.GetDayName(day, out, B_LONG_DATE_FORMAT) != B_OK)
1065 Converts the date to Julian day. If your date is invalid, the function will
1179 BDate::_SetDate(int32 year, int32 month, int32 day)
1185 bool valid = IsValid(year, month, day);
1187 fDay = day;
1210 BDate::_DateToJulianDay(int32 _year, int32 month, int32 day)
1212 if (IsValid(_year, month, day)) {
1223 || (year == 1582 && month == 10 && day >= 15)) {
1224 return day + (((153 * m) + 2) / 5) + (365 * y) + (y / 4) -
1228 || (year == 1582 && month == 10 && day <= 4)) {
1229 return day + (((153 * m) + 2) / 5) + (365 * y) + (y / 4) - 32083;
1234 // The last day of the Julian calendar was Thursday October 4, 1582
1235 // and this was followed by the first day of the Gregorian calendar,