Creates a date from the given year, month and day.
Months and days start at 1: 1{month} is January, and 1{day} is the first day of the month.
Creates a time-of-day (or clock time) from the given hours, minutes and seconds.
Gets the Time part of a DateTime.
Gets the Time part of a DateTimeZoned.
No timezone conversions are performed, this just takes the time part, ignoring the date and the zone.
Gets the Date part of a DateTime.
Gets the Date part of a DateTimeZoned.
No timezone conversions are performed, this just takes the time part, ignoring the date and the zone.
Gets the DateTime part of a DateTimeZoned.
No timezone conversions are performed, this just takes the DateTime part, ignoring the zone.
Creates a year-month value from the given year and month.
Gets the year and month part of a Date as a DateYM.
Creates a DateTime from the given Date and Time.
Creates a datetime with a time zone from the given Date, Time and time zone.
Note that because many of the three-letter abbreviations for time zones overlap, they are not supported here, and you must spell out the full name.
Calculates the number of years between two dates.
If the first date is before the second date, the returned number is positive. If the first date is after the second date, the returned number will be negative.
Calculates the number of days between two dates.
If the first date is before the second date, the returned number is positive. If the first date is after the second date, the returned number will be negative.
Adds the given number of the days to the date.
Calculates the number of seconds between two times.
If the first time is before the second time, the returned number is positive. If the first time is after the second time, the returned number will be negative.
This function does not consider wrap-around. That is, 00:30 is considered to be 23 hours before 23:30, not one hour after.