TimeUnit enum

Defines supported units of time.

Inheritance

Constructors

TimeUnit()
const

Values

nanosecond → const TimeUnit

A unit representing nanoseconds.

microsecond → const TimeUnit

A unit representing microseconds.

millisecond → const TimeUnit

A unit representing milliseconds.

centisecond → const TimeUnit

A unit representing centiseconds.

decisecond → const TimeUnit

A unit representing deciseconds.

second → const TimeUnit

A unit representing seconds.

decasecond → const TimeUnit

A unit representing decaseconds.

minute → const TimeUnit

A unit representing minutes.

hour → const TimeUnit

A unit representing hours.

day → const TimeUnit

A unit representing days.

week → const TimeUnit

A unit representing weeks.

fortnight → const TimeUnit

A unit representing fortnights.

month → const TimeUnit

A unit representing months.

quarter → const TimeUnit

A unit representing quarters.

year → const TimeUnit

A unit representing years.

decade → const TimeUnit

A unit representing decades.

century → const TimeUnit

A unit representing centuries.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<TimeUnit>
A constant List of the values in this enum, in order of their declaration.