TimeBased

class TimeBased(val nanoseconds: Long) : DateTimeUnit(source)

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
constructor(nanoseconds: Long)

Properties

Link copied to clipboard

The length of this unit as a Duration.

Link copied to clipboard

The length of this unit in nanoseconds.

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