Skip to content

//core/io.islandtime.measures/TimeUnit

TimeUnit

common

enum TimeUnit : Enum<TimeUnit>

A unit of time measurement.

Entries

NANOSECONDS

common

NANOSECONDS

MICROSECONDS

common

MICROSECONDS

MILLISECONDS

common

MILLISECONDS

SECONDS

common

SECONDS

MINUTES

common

MINUTES

HOURS

common

HOURS

DAYS

common

DAYS

Properties

Name Summary
entries

common


val entries: EnumEntries<TimeUnit>

Returns a representation of an immutable list of all enum entries, in the order they're declared.
name

common


val name: String
ordinal

common


val ordinal: Int

Functions

Name Summary
valueOf

common


fun valueOf(value: String): TimeUnit

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
values

common


fun values(): Array<TimeUnit>

Returns an array containing the constants of this enum type, in the order they're declared.