
nonJs.com.pubnub.api.utils.datetime.nonJs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pubnub-kotlin-api-jvm Show documentation
Show all versions of pubnub-kotlin-api-jvm Show documentation
PubNub is a cross-platform client-to-client (1:1 and 1:many) push service in the cloud, capable of broadcasting real-time messages to millions of web and mobile clients simultaneously, in less than a quarter second!
package com.pubnub.api.utils
import kotlinx.datetime.Clock
import kotlinx.datetime.Instant
actual typealias Instant = Instant
actual interface Clock {
actual fun now(): com.pubnub.api.utils.Instant
actual object System : com.pubnub.api.utils.Clock {
actual override fun now(): com.pubnub.api.utils.Instant {
return Clock.System.now()
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy