DateTimeField

enum DateTimeField : Enum<DateTimeField>

A field describing a property of a date, time, or measurement of time.

These are intended to be used primarily during parsing and formatting. Each date-time primitive is capable of resolving or supplying the set of fields that are applicable to it.

Entries

IS_UNBOUNDED
Link copied to clipboard
common

Indicates the presence of the minimum or maximum sentinel value, which should treated as unbounded (in ISO-8601 parlance, "open") in the context of an interval.

DURATION_OF_SECONDS
Link copied to clipboard
common

A duration of seconds.

DURATION_OF_MINUTES
Link copied to clipboard
common

A duration of minutes.

DURATION_OF_HOURS
Link copied to clipboard
common

A duration of hours.

PERIOD_OF_DAYS
Link copied to clipboard
common

A period of days.

PERIOD_OF_WEEKS
Link copied to clipboard
common

A period of weeks.

PERIOD_OF_MONTHS
Link copied to clipboard
common

A period of months.

PERIOD_OF_YEARS
Link copied to clipboard
common

A period of years.

PERIOD_SIGN
Link copied to clipboard
common

The sign of the period, -1 (negative) or 1 (positive).

UTC_OFFSET_TOTAL_SECONDS
Link copied to clipboard
common

The total number of seconds in the UTC offset, from (-18 * 60 * 60) to (18 * 60 * 60).

UTC_OFFSET_SECONDS
Link copied to clipboard
common

The second component of the UTC offset, from 0-59.

UTC_OFFSET_MINUTES
Link copied to clipboard
common

The minute component of the UTC offset, from 0-59.

UTC_OFFSET_HOURS
Link copied to clipboard
common

The hour component of the UTC offset, from 0-18.

UTC_OFFSET_SIGN
Link copied to clipboard
common

The sign of the UTC offset, -1 (negative) or 1 (positive).

MILLISECOND_OF_SECOND
Link copied to clipboard
common

The millisecond of the second, from 0 to 999.

NANOSECOND_OF_SECOND
Link copied to clipboard
common

The nanosecond of the second, from 0 to 999,999,999.

SECOND_OF_MINUTE
Link copied to clipboard
common

The second of the minute, from 0 to 59.

MINUTE_OF_HOUR
Link copied to clipboard
common

The minute of the hour, from 0 to 59.

HOUR_OF_DAY
Link copied to clipboard
common

The hour of the day, from 0 to 23.

AM_PM_OF_DAY
Link copied to clipboard
common

AM or PM of the day.

DAY_OF_WEEK
Link copied to clipboard
common

The day of the week, such as Sunday.

DAY_OF_MONTH
Link copied to clipboard
common

The day of the month.

DAY_OF_YEAR
Link copied to clipboard
common

The day of the year.

MONTH_OF_YEAR
Link copied to clipboard
common

The month of the year, such as January

ERA
Link copied to clipboard
common
ERA()

The era.

YEAR_OF_ERA
Link copied to clipboard
common

The year of the era.

YEAR
Link copied to clipboard
common

The proleptic year.

Properties

name
Link copied to clipboard
common
val name: String
ordinal
Link copied to clipboard
common
val ordinal: Int