Lines Matching defs:date

480 	Please note that a date before 1.1.4713 BC, a date with year 0 and a date
482 date is invalid, the date is not set and IsValid() returns false. Also note
556 Returns true if the date is valid, otherwise false.
558 Please note that a date before 1.1.4713 BC, a date with year 0 and a date
572 BDate::IsValid(const BDate& date)
574 return IsValid(date.fYear, date.fMonth, date.fDay);
603 Returns the current date as reported by the system depending on the given
627 BDate::SetDate(const BDate& date)
629 return _SetDate(date.fYear, date.fMonth, date.fDay);
634 Set the date to \c year \c month and \c day.
636 Returns true if the date is valid; otherwise false. If the specified date is
637 invalid, the date is not set and the function returns false.
648 representative values of this date. The pointers can be NULL. If the date is
667 Adds \c days to the current date. If the passed value is negative it will
668 become earlier. If the current date is invalid, the \c days are not added.
679 Adds \c years to the current date. If the passed value is negativ it will
680 become earlier. If the current date is invalid, the \c years are not added.
682 resulting year, so this function will then return the latest valid date.
700 Adds \c months to the current date. If the passed value is negativ it will
701 become earlier. If the current date is invalid, the \c months are not added.
703 resulting year, so this function will then return the latest valid date.
734 Returns the day fragment of the date. The return value will be in the range
735 of 1 to 31, in case the date is invalid it will be -1.
745 Returns the year fragment of the date. If the date is invalid, the function
756 Returns the month fragment of the date. The return value will be in the
757 range of 1 to 12, in case the date is invalid it will be -1.
767 Returns the difference in days between this date and the given BDate \c date.
768 If \c date is earlier the return value will be negativ. If the calculation
769 is done with an invalid date, the result is undefined.
772 BDate::Difference(const BDate& date) const
774 return date.DateToJulianDay() - DateToJulianDay();
800 Returns the week number of the date, if the date is invalid it will return
802 calendar, thus a date before 15.10.1582 will return B_ERROR.
861 monday. If the date is invalid, the function will return B_ERROR.
873 the date is invalid, the function will return B_ERROR.
913 Returns the number of days in the year of the current date. If the date is
927 Returns the number of days in the month of the current date. If the date is
1065 Converts the date to Julian day. If your date is invalid, the function will
1077 the function will return an invalid date. Because of the switch from Julian
1083 BDate date;
1095 date.fYear = ((j / 146097) * 400 + c * 100 + (dc / 1461) * 4 + a)
1097 date.fMonth = (m + 2) % 12 + 1;
1098 date.fDay = int32((da - (m + 4) * 153 / 5 + 122) + 1.5);
1105 date.fDay = e - (153 * m + 2) / 5 + 1;
1106 date.fMonth = m + 3 - 12 * (m / 10);
1110 date.fYear = year;
1112 return date;
1117 Returns true if this date is different from \c date, otherwise false.
1120 BDate::operator!=(const BDate& date) const
1122 return DateToJulianDay() != date.DateToJulianDay();
1127 Returns true if this date is equal to \c date, otherwise false.
1130 BDate::operator==(const BDate& date) const
1132 return DateToJulianDay() == date.DateToJulianDay();
1137 Returns true if this date is earlier than \c date, otherwise false.
1140 BDate::operator<(const BDate& date) const
1142 return DateToJulianDay() < date.DateToJulianDay();
1147 Returns true if this date is earlier than or equal to \c date, otherwise
1151 BDate::operator<=(const BDate& date) const
1153 return DateToJulianDay() <= date.DateToJulianDay();
1158 Returns true if this date is later than \c date, otherwise false.
1161 BDate::operator>(const BDate& date) const
1163 return DateToJulianDay() > date.DateToJulianDay();
1168 Returns true if this date is later than or equal to \c date, otherwise
1172 BDate::operator>=(const BDate& date) const
1174 return DateToJulianDay() >= date.DateToJulianDay();
1255 Constructs a BDateTime object with \c date and \c time. The return value
1258 BDateTime::BDateTime(const BDate& date, const BTime& time)
1259 : fDate(date),
1301 Returns true if the date time is valid, otherwise false.
1311 Returns the current date and time as reported by the system depending on the
1322 Sets the current date and time of this object to \c date and \c time.
1325 BDateTime::SetDateTime(const BDate& date, const BTime& time)
1327 fDate = date;
1333 Returns the current date of this object.
1343 Returns the current date of this object.
1353 Set the current date of this object to \c date.
1356 BDateTime::SetDate(const BDate& date)
1358 fDate = date;
1393 Returns the current date and time converted to seconds since
1394 1.1.1970 - 00:00:00. If the current date is before 1.1.1970 the function
1400 BDate date(1970, 1, 1);
1401 if (date.Difference(fDate) < 0)
1423 Sets the current date and time converted from seconds since
1439 BDate date(1970, 1, 1);
1440 date.AddDays(seconds / kSecondsPerDay);
1441 fDate.SetDate(date);