Creates a new Day instance based on the given date.
The date that initialize the day. This should not be modified, and if it is it will result in unpredictable and incorrect behavior.
The day of the week, starting at 0 for Sunday.
The day of the month, starting at 1 for the 1st.
The hour of this timestamp (0 to 23).
The milliseconds of this timestamp (0 to 999).
The minutes of this timestamp (0 to 59).
The month of this timestamp, zero based (January).
The seconds of this timestamp (0 to 59).
The time since the unix epoch in milliseconds in UTC.
The year of this timestamp.
The identifier which stores in a simple form the date of this Day.
The day of the week relative to the first day of the week specified by Locale.weekStartsOn. So if the week starts on Monday, then this will be 0 for Monday, 1 for Tuesday, etc.
This is dependent on the locale of the instance (or global locale).
The day of the year, starting at 1 for the 1st of January.
The full week of the month, starting at 0 for a partial week (if one exists) and 1 for the first full week.
This is dependent on the locale of the instance (or global locale).
The full week of the year, starting at 0 for a partial week (if one exists) and 1 for the first full week.
This is dependent on the locale of the instance (or global locale).
The last day of the month, starting at 1 for the last day, 2 for the 2nd to last, etc.
The last full week of the month, starting at 0 for the last week ending before Thursday and 1 for the last week with a Thursday.
This is dependent on the locale of the instance (or global locale).
The last full week of the year, starting at 0 for the last week ending before Thursday and 1 for the last week with a Thursday.
This is dependent on the locale of the instance (or global locale).
The last weekspan of the month, starting at 0 representing 31st to 25th for a month with 31 days. Weekspans allow you to create schedules for things like "the last saturday of the month".
The last weekspan of the year, starting at 0 representing December 31st to December 25th. Weekspans allow you to create schedules for things like "the last saturday of the year".
The identifier which stores in a simple form the month and year of this Day.
The quarter of the year this day is in, starting at 0 for January through March.
The identifier which stores in a simple form the quarter and year of this Day.
The identifier which stores in a simple form the date and time of this Day.
The week of the year. The first week of the year (1) contains Jan 1st.
This is dependent on the locale of the instance (or global locale).
The identifier which stores in a simple form the week of the year of this Day.
The week of the month. The first week of the month (1) is the first week which has the date Locale.firstWeekContainsDate. If there is a week before that it will be 0.
This is dependent on the locale of the instance (or global locale).
The week of the year. The first week of the year (1) is the first week which has the date Locale.firstWeekContainsDate. If there is a week before that it will be 0. Frequently referred to as the ISO week.
This is dependent on the locale of the instance (or global locale).
The weekspan of the month, starting at 0 representing the 1st to the 7th. Weekspans allow you to create schedules for things like "the first saturday of the month".
The weekspan of the year, starting at 0 representing January 1st to the 7th. Weekspans allow you to create schedules for things like "the first saturday of the year".
Sets the locale of this Day instance to the global locale.
Returns the current locale of the day instance.
Resets all locale-based caches on this Day instance.
Determines whether this day and the given day lie on the same day.
Determines whether this week and the given day lie on the same year.
Determines whether
Determines whether this day and the given day lie on the same month.
Determines whether this day and the given day lie on the same month.
Determines whether this day and the given day lie on the same week.
Determines whether this week and the given day lie on the same year.
Sets the locale for this Day and returns this.
The code to the locale to apply.
Generated using TypeDoc
A class which represents a Date with a few added features.