Skip to content

An implementation of time-zone aware TC39 temporal classes for AssemblyScript

Notifications You must be signed in to change notification settings

ColinEberhardt/assemblyscript-temporal-tz

Repository files navigation

assemblyscript-temporal-tz

Time-zone aware classes as a complement to https://github.com/ColinEberhardt/assemblyscript-temporal

This is very much a work-in-progress!

Development progress

ZonedDateTime

Constructor

  • new Temporal.ZonedDateTime

Static methods

  • from
  • compare

Properties

  • year
  • month
  • day
  • hour
  • minute
  • second
  • millisecond
  • microsecond
  • nanosecond
  • epochSeconds
  • epochMilliseconds
  • epochMicroseconds
  • epochNanoseconds
  • calendar
  • timeZone
  • era
  • eraYear
  • dayOfWeek
  • dayOfYear
  • weekOfYear
  • daysInWeek
  • daysInMonth
  • daysInYear
  • monthsInYear
  • inLeapYear
  • hoursInDay
  • startOfDay
  • offsetNanoseconds
  • offset

Methods

  • with
  • withPlainTime
  • withPlainDate
  • withTimeZone
  • withCalendar
  • add
  • subtract
  • until
  • since
  • round
  • equals
  • toString
  • toLocaleString
  • toJSON
  • valueOf
  • toInstant
  • toPlainTime
  • toPlainDateTime
  • toPlainYearMonth
  • toPlainMonthDay
  • getISOFields

Timezone

Constructor

  • new Temporal.TimeZone

Static methods

  • from

Properties

  • id

Methods

  • getOffsetNanosecondsFor
  • getOffsetStringFor
  • getPlainDateTimeFor
  • getInstantFor
  • getPossibleInstantsFor
  • getNextTransition
  • getPreviousTransition
  • toString
  • toJSON

Features

  • regional / zoned timezones
  • fixed UTC offsets