Companion

object Companion

Properties

MAX
Link copied to clipboard
common
val MAX: Seconds

The largest supported value.

MIN
Link copied to clipboard
common
val MIN: Seconds

The smallest supported value.

Extensions

between
Link copied to clipboard
common
fun Seconds.Companion.between(start: DateTime, endExclusive: DateTime): Seconds

Returns the number of whole seconds between two date-times, which are assumed to be at the same UTC offset. In general, it's more appropriate to calculate duration using Instant or ZonedDateTime as any daylight savings rules won't be taken into account when working with DateTime directly.

fun Seconds.Companion.between(start: TimePoint<*>, endExclusive: TimePoint<*>): Seconds

Returns the number of whole seconds between two time points.