TimeBased

class TimeBased(val nanoseconds: Long) : DateTimeUnit

A date-time unit that has the precise time duration.

Such units are independent of the time zone. Any such unit can be represented as some fixed number of nanoseconds.

Constructors

Link copied to clipboard
fun TimeBased(nanoseconds: Long)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open operator override fun times(scalar: Int): DateTimeUnit.TimeBased

Produces a date-time unit that is a multiple of this unit times the specified integer scalar value.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val duration: Duration

The length of this unit as a Duration.

Link copied to clipboard
val nanoseconds: Long

The length of this unit in nanoseconds.