See the dojox/calendar/time reference documentation for more information.
floors the date to the unit.
Parameter | Type | Description |
---|---|---|
date | Date | The date/time to floor. |
unit | String | The unit. Valid values are "minute", "hour", "day". |
steps | Integer | Valid for "minute" or "hour" units. |
reuse | Boolean | Whether use the specified instance or create a new one. Default is false. |
dateClassObj | Object |
Optional The Date class used, by default the native Date. |
Floors the specified date to the start of day.
Parameter | Type | Description |
---|---|---|
d | undefined | |
reuse | Boolean | Whether use the specified instance or create a new one. Default is false. |
dateClassObj | Object |
Optional The Date class used, by default the native Date. |
Floors the specified date to the start of the date's month.
Parameter | Type | Description |
---|---|---|
d | undefined | |
reuse | Boolean | Whether use the specified instance or create a new one. Default is false. |
dateClassObj | Object |
Optional The Date class used, by default the native Date. |
Floors the specified date to the beginning of week.
Parameter | Type | Description |
---|---|---|
d | Date | Date to floor. |
dateClassObj | Object |
Optional The Date class used, by default the native Date. |
dateModule | Object |
Optional Object that contains the "add" method. By default dojo.date is used. |
firstDayOfWeek | Integer |
Optional Optional day of week that overrides the one provided by the CLDR. |
locale | String |
Optional Optional locale used to determine first day of week. |
Computes if the first time range defined by the start1 and end1 parameters is overlapping the second time range defined by the start2 and end2 parameters.
Parameter | Type | Description |
---|---|---|
renderData | Object | The current renderData |
start1 | Date | The start time of the first time range. |
end1 | Date | The end time of the first time range. |
start2 | Date | The start time of the second time range. |
end2 | Date | The end time of the second time range. |
includeLimits | Boolean | Whether include the end time or not. |
Tests if the specified date represents the starts of day.
Parameter | Type | Description |
---|---|---|
d | Date | The date to test. |
dateClassObj | Object |
Optional The Date class used, by default the native Date. |
dateModule | Object |
Optional Object that contains the "add" method. By default dojo.date is used. |
Returns whether the specified date is in the current day.
Parameter | Type | Description |
---|---|---|
d | Date | The date to test. |
dateClassObj | Object |
Optional The Date class used, by default the native Date. |
Creates a new Date object.
Parameter | Type | Description |
---|---|---|
obj | Object | This object can have several values: - the time in milliseconds since gregorian epoch. - a Date instance - a String instance that can be decoded by the dojo/date/stamp class. |
dateClassObj | Object |
Optional The Date class used, by default the native Date. |