Base classes and interfaces of the Date/Time library.

By: Diego Coronel, Roland Tepp
Values
aprilSource Codeshared april april

April. The fourth month of a gregorian calendar system.

augustSource Codeshared august august

August. The eighth month of a gregorian calendar system.

daysSource Codeshared days days

Common properties and constraints of day unit.

decemberSource Codeshared december december

December. The twelfth (last) month of a gregorian calendar system.

februarySource Codeshared february february

February. The second month of a gregorian calendar system.

fridaySource Codeshared friday friday

Friday is the day of the week that follows Thursday and precedes Saturday.

hoursSource Codeshared hours hours

Common properties of hour time unit.

januarySource Codeshared january january

January. The first month of a gregorian calendar system.

julySource Codeshared july july

July. The seventh month of a gregorian calendar system.

juneSource Codeshared june june

June. The sixth month of a gregorian calendar system.

marchSource Codeshared march march

March. The third month of a gregorian calendar system.

maySource Codeshared may may

May. The fifth month of a gregorian calendar system.

millisecondsSource Codeshared milliseconds milliseconds

Common properties of millisecond time unit.

minutesSource Codeshared minutes minutes

Common properties of minute time unit.

mondaySource Codeshared monday monday

Monday is the day of the week that follows Sunday and precedes Tuesday.

monthsSource Codeshared months months

Common properties and constraints of months.

novemberSource Codeshared november november

November. The eleventh month of a gregorian calendar system.

octoberSource Codeshared october october

October. The tenth month of a gregorian calendar system.

saturdaySource Codeshared saturday saturday

Saturday is the day of the week that follows Friday and precedes Sunday.

secondsSource Codeshared seconds seconds

Common properties of second time unit.

septemberSource Codeshared september september

September. The ninth month of a gregorian calendar system.

sundaySource Codeshared sunday sunday

Sunday is the day of the week that follows Saturday and precedes Monday.

thursdaySource Codeshared thursday thursday

Thursday is the day of the week that follows Wednesday and precedes Friday.

tuesdaySource Codeshared tuesday tuesday

Tuesday is the day of the week that follows Monday and precedes Wednesday.

wednesdaySource Codeshared wednesday wednesday

Wednesday is the day of the week that follows Tuesday and precedes Thursday.

weekdaysSource Codeshared DayOfWeek[] weekdays

List of all available weekdays.

yearsSource Codeshared years years

Common properties and constraints of year unit.

Functions
dayOfWeekSource Codeshared DayOfWeek dayOfWeek(Integer|DayOfWeek dayOfWeek)

Returns DayOfWeek from the input.

monthOfSource Codeshared Month monthOf(Integer|Month month)

Returns month of year specified by the input argument.

If input is an Integer, this method returns a month according to the integer value of the Month (i.e. 1=january, 2=february, … 12=december) Any invalid values will throw an AssertionError.

If the input value is a Month, the input value is returned as is.

parseDayOfWeekSource Codeshared DayOfWeek? parseDayOfWeek(String dayOfWeek)

Parses a string into a DayOfWeek.

Expected inputs and outputs are:

Interfaces
DateBehaviorSource Codeshared DateBehavior<Element>
given Element satisfies ReadableDate

Common behavior for date types.

DateTimeBehaviorSource Codeshared DateTimeBehavior<Element,out DateType,out TimeType>
given Element satisfies ReadableDateTime
given DateType satisfies ReadableDate
given TimeType satisfies ReadableTime

Common behavior of the DateTime types.

PeriodBehaviorSource Codeshared PeriodBehavior<Self>
given Self satisfies PeriodBehavior<Self> & ReadablePeriod

Common behavior of objects representing a period.

RangeSource Codeshared Range<Element,StepBy>
given Element satisfies Enumerable<Element>

An interface to represent a Range between same kinds of Date or DateTime or Time.

ReadableDateSource Codeshared ReadableDate

A common interface of all date like objects.

This interface is common to all data types that either partially or fully represent information that can be interpreted as date.

ReadableDatePeriodSource Codeshared ReadableDatePeriod

A period of days, months and years.

ReadableDateTimeSource Codeshared ReadableDateTime

Common interface that can represent particular time of day on a specific date.

ReadableDurationSource Codeshared ReadableDuration

An abstraction of data representing a specific duration of time.

A duration is a fixed delta of time between two instants measured in number of milliseconds.

ReadableInstantSource Codeshared ReadableInstant

An abstraction for data that can represent an instant of time.

ReadablePeriodSource Codeshared ReadablePeriod

A Period of time represented as number of years, months, days, hours, minutes, seconds and/or milliseconds.

ReadableTimeSource Codeshared ReadableTime

Common interface capable of representing time of day.

ReadableTimePeriodSource Codeshared ReadableTimePeriod

A period of hours, minutes, seconds and milliseconds.

TimeBehaviorSource Codeshared TimeBehavior<Element>
given Element satisfies ReadableTime

Common behavior for the types that represent time.

UnitOfDateSource Codeshared UnitOfDate

Represents units of Date

UnitOfDaySource Codeshared UnitOfDay
UnitOfHourSource Codeshared UnitOfHour
UnitOfMillisecondSource Codeshared UnitOfMillisecond
UnitOfMinuteSource Codeshared UnitOfMinute
UnitOfMonthSource Codeshared UnitOfMonth
UnitOfSecondSource Codeshared UnitOfSecond
UnitOfTimeSource Codeshared UnitOfTime

Represents units of Time

UnitOfYearSource Codeshared UnitOfYear
Classes
DayOfWeekSource Codeshared abstract DayOfWeek

A day of week, such as 'tuesday'.

MonthSource Codeshared abstract Month

A month in a Gregorian or Julian calendar system.

aprilSource Codeshared april

April. The fourth month of a gregorian calendar system.

augustSource Codeshared august

August. The eighth month of a gregorian calendar system.

daysSource Codeshared days

Common properties and constraints of day unit.

decemberSource Codeshared december

December. The twelfth (last) month of a gregorian calendar system.

februarySource Codeshared february

February. The second month of a gregorian calendar system.

fridaySource Codeshared friday

Friday is the day of the week that follows Thursday and precedes Saturday.

hoursSource Codeshared hours

Common properties of hour time unit.

januarySource Codeshared january

January. The first month of a gregorian calendar system.

julySource Codeshared july

July. The seventh month of a gregorian calendar system.

juneSource Codeshared june

June. The sixth month of a gregorian calendar system.

marchSource Codeshared march

March. The third month of a gregorian calendar system.

maySource Codeshared may

May. The fifth month of a gregorian calendar system.

millisecondsSource Codeshared milliseconds

Common properties of millisecond time unit.

minutesSource Codeshared minutes

Common properties of minute time unit.

mondaySource Codeshared monday

Monday is the day of the week that follows Sunday and precedes Tuesday.

monthsSource Codeshared months

Common properties and constraints of months.

novemberSource Codeshared november

November. The eleventh month of a gregorian calendar system.

octoberSource Codeshared october

October. The tenth month of a gregorian calendar system.

saturdaySource Codeshared saturday

Saturday is the day of the week that follows Friday and precedes Sunday.

secondsSource Codeshared seconds

Common properties of second time unit.

septemberSource Codeshared september

September. The ninth month of a gregorian calendar system.

sundaySource Codeshared sunday

Sunday is the day of the week that follows Saturday and precedes Monday.

thursdaySource Codeshared thursday

Thursday is the day of the week that follows Wednesday and precedes Friday.

tuesdaySource Codeshared tuesday

Tuesday is the day of the week that follows Monday and precedes Wednesday.

wednesdaySource Codeshared wednesday

Wednesday is the day of the week that follows Tuesday and precedes Thursday.

yearsSource Codeshared years

Common properties and constraints of year unit.