localDateTimeToInstant

fun localDateTimeToInstant(localDateTime: LocalDateTime, timeZone: TimeZone): Instant

Converts LocalDateTime in the provided TimeZone into a PubNub Instant.

This helper avoids exposing experimental kotlin.time/kotlinx.datetime Instant types in the public API.