datatype-date-math.js revision 829f44d633f4910c12181f3295e5c6b996d7e559
524N/A * Datatype Date Math submodule. 524N/A * @submodule datatype-date-math 524N/A * Checks whether a native JavaScript Date contains a valid value. 524N/A * @param oDate {Date} Date in the month for which the number of days is desired. 524N/A * @return {Boolean} True if the date argument contains a valid value. 524N/A * Checks whether two dates correspond to the same date and time. 524N/A * @param aDate {Date} The first date to compare. 524N/A * @param bDate {Date} The second date to compare. 524N/A * @return {Boolean} True if the two dates correspond to the same 524N/A * Checks whether the first date comes later than the second. 524N/A * @param aDate {Date} The first date to compare. 524N/A * @param bDate {Date} The second date to compare. 524N/A * @return {Boolean} True if the first date is later than the second. 524N/A * Checks whether the first date comes later than or is the same as 524N/A * @method isGreaterOrEqual 524N/A * @param aDate {Date} The first date to compare. 524N/A * @param bDate {Date} The second date to compare. 524N/A * @return {Boolean} True if the first date is later than or 524N/A * the same as the second. 524N/A * Checks whether the date is between two other given dates. 524N/A * @param aDate {Date} The date to check 524N/A * @param bDate {Date} Lower bound of the range. 524N/A * @param cDate {Date} Higher bound of the range. 524N/A * @return {Boolean} True if the date is between the two other given dates. 524N/A * Adds a specified number of days to the given date. 524N/A * @param oDate {Date} The date to add days to. 524N/A * @param numMonths {Number} The number of days to add (can be negative) 524N/A * @return {Date} A new Date with the specified number of days 524N/A * added to the original date. 524N/A * Adds a specified number of months to the given date. 524N/A * @param oDate {Date} The date to add months to. 524N/A * @param numMonths {Number} The number of months to add (can be negative) 524N/A * @return {Date} A new Date with the specified number of months 524N/A * added to the original date. 524N/A * Adds a specified number of years to the given date. 524N/A * @param oDate {Date} The date to add years to. 524N/A * @param numYears {Number} The number of years to add (can be negative) 524N/A * @return {Date} A new Date with the specified number of years 524N/A * added to the original date. 524N/A * Lists all dates in a given month. 524N/A * @method listOfDatesInMonth 524N/A * @param oDate {Date} The date corresponding to the month for 524N/A * which a list of dates is required. 524N/A * @return {Array} An `Array` of `Date`s from a given month. * Takes a native JavaScript Date and returns the number of days * in the month that the given date belongs to. * @param oDate {Date} Date in the month for which the number * @return {Number} A number (either 28, 29, 30 or 31) of days var lengths = [
31,
28,
31,
30,
31,
30,
31,
31,
30,
31,
30,
31];
else if (
year%
100 ===
0) {
},
'@VERSION@' ,{
requires:[
'yui-base']});