Package-level declarations

Types

Link copied to clipboard
actual object Clock

Android implementation using java.util.Date

expect object Clock

Custom Clock implementation to replace kotlinx-datetime.Clock.System

actual object Clock

iOS implementation using NSDate

Link copied to clipboard
actual class Instant

Android implementation using java.util.Date

expect class Instant

Custom Instant implementation to replace kotlinx-datetime.Instant

actual class Instant

iOS implementation using Foundation classes

Link copied to clipboard
actual class TimeZone

Android implementation using java.util.TimeZone

expect class TimeZone

Custom TimeZone implementation to replace kotlinx-datetime.TimeZone

actual class TimeZone

iOS implementation using NSTimeZone

Functions

Link copied to clipboard
fun Instant.toIsoString(timeZone: TimeZone? = null, forceNumberOffset: Boolean = true): String

Extension function to convert Instant to ISO string format

Link copied to clipboard
fun ByteArray.toNSData(): NSData