getZonedTime

fun getZonedTime(timezone: ZoneId = TimeZone.getDefault().toZoneId()): ZonedDateTime

Returns the time-zoned instant that the OpenAI Completion API sent this response. By default, this method uses the system's timezone.

Return

The timezone adjusted date time.

Parameters

timezone

The user's timezone.

See also