Skip to content

Already in Temporal ​

orasna does not wrap features that Temporal already provides. Use these built-ins directly:

TaskBuilt-in
Locale-aware display textvalue.toLocaleString(locale, options)
Add a time to a dateplainDate.toPlainDateTime(plainTime)
Attach a time zone to a wall-clock timeplainDateTime.toZonedDateTime(timeZone)
Get the exact instant of a zoned timezonedDateTime.toInstant()
Convert a legacy Datedate.toTemporalInstant()
Locale-aware duration textnew Intl.DurationFormat(locale).format(duration)

Released under the MIT License.