Lines Matching defs:month

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);
522 archive->FindInt32("month", &fMonth);
550 ret = into->AddInt32("month", fMonth);
582 BDate::IsValid(int32 year, int32 month, int32 day)
588 if (month < 1 || month > 12)
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
658 if (month)
659 *month = fMonth;
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
756 Returns the month fragment of the date. The return value will be in the
786 BDate::SetMonth(int32 month)
788 fMonth = month;
927 Returns the number of days in the month of the current date. If the date is
973 Returns the short month name of this object.
983 Returns the short month name in case of an valid month, otherwise an empty
984 string. The passed \c month must be in the range of 1 to 12.
987 BDate::ShortMonthName(int32 month)
989 if (month < 1 || month > 12)
994 tm_struct.tm_mon = month - 1;
1035 Returns the long month name of this object's month.
1045 Returns the long month name in case of an valid month, otherwise an empty
1046 string. The passed \c month must be in the range of 1 to 12.
1049 BDate::LongMonthName(int32 month)
1051 if (month < 1 || month > 12)
1057 if (format.GetMonthName(month, out, B_LONG_DATE_FORMAT) != B_OK)
1179 BDate::_SetDate(int32 year, int32 month, int32 day)
1185 bool valid = IsValid(year, month, day);
1189 fMonth = month;
1197 BDate::_DaysInMonth(int32 year, int32 month)
1199 if (month == 2 && IsLeapYear(year))
1205 return daysInMonth[month -1];
1210 BDate::_DateToJulianDay(int32 _year, int32 month, int32 day)
1212 if (IsValid(_year, month, day)) {
1216 int32 a = (14 - month) / 12;
1218 int32 m = month + (12 * a) - 3;
1222 || (year == 1582 && month > 10)
1223 || (year == 1582 && month == 10 && day >= 15)) {
1227 || (year == 1582 && month < 10)
1228 || (year == 1582 && month == 10 && day <= 4)) {