toMilliseconds

@IntRange(from = 0)
open fun toMilliseconds(): Long

Convert to milliseconds,

Java time uses millisecond precision so the returned value is rounded to the nearest millisecond. Rounding errors may occur when comparing this value to event timestamps.

Return

Time as number of milliseconds since the Epoch.