nanoseconds Between
fun nanosecondsBetween(start: DateTime, endExclusive: DateTime): LongNanoseconds
Content copied to clipboard
Gets the number of nanoseconds between two date-times, assuming they have 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.
Throws
if the result overflows
fun <T1, T2> nanosecondsBetween(start: TimePoint<T1>, endExclusive: TimePoint<T2>): LongNanoseconds
Content copied to clipboard
Gets the number of nanoseconds between two time points.
Throws
if the result overflows