temporal_js 0.0.3 copy "temporal_js: ^0.0.3" to clipboard
temporal_js: ^0.0.3 copied to clipboard

Platformweb

TC39 Temporal date/time API for Dart, backed by the JS Temporal API via dart:js_interop. Lightweight, immutable date and time types for Dart web apps.

0.0.3 #

  • Add rounding, difference and string options, overflow control, copyWith, calendar metadata, and conversions between Temporal date types.
  • Add nanosecond instant construction and access, duration rounding, totals, comparison and relative arithmetic, and zoned date-time helpers including startOfDay() and getTimeZoneTransition().
  • Add TemporalNow for current dates, times, instants, and the host time zone.
  • Improve Temporal error classification and omit absent JS options instead of passing null.
  • Expand browser regression coverage for the new APIs and ISO string formatting.

0.0.2 #

Published as a standalone package on pub.flutter-io.cn. Web apps that want to depend directly on the browser-backed Temporal implementation (without going through the umbrella temporal package) can now add temporal_js explicitly.

0.0.1 #

Initial release with core Temporal types backed by the browser's native JS Temporal API:

  • PlainDate — an ISO 8601 calendar date (year, month, day) with no time or timezone
  • PlainTime — a wall-clock time with no date or timezone
  • PlainDateTime — a combined calendar date and wall-clock time
  • PlainYearMonth — a year and month with no day or timezone
  • PlainMonthDay — a month and day with no year or timezone
  • Instant — an exact UTC point in time
  • ZonedDateTime — an exact moment tied to a specific IANA timezone
  • TemporalDuration — a duration spanning calendar and time units
  • Calendar — a calendar system (ISO 8601, Buddhist, Hebrew, etc.)
  • TimeZone — an IANA timezone identifier
0
likes
140
points
241
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

TC39 Temporal date/time API for Dart, backed by the JS Temporal API via dart:js_interop. Lightweight, immutable date and time types for Dart web apps.

Repository (GitHub)
View/report issues

Topics

#date #time #temporal #datetime #js

License

unknown (license)

Dependencies

meta

More

Packages that depend on temporal_js