toKotlinInstant

fun <Error class: unknown class>.toKotlinInstant(): Instant(source)

Converts the NSDate to the corresponding Instant.

Note that the NSDate stores a Double value. This means that the results of this conversion may be imprecise. For example, if the NSDate only has millisecond or microsecond precision logically, due to conversion artifacts in Double values, the result may include non-zero nanoseconds.

Converts the JS Date to the corresponding Instant.