All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nonJs.com.pubnub.api.utils.datetime.nonJs.kt Maven / Gradle / Ivy

Go to download

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!

There is a newer version: 10.4.6
Show newest version
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