# temporal **Repository Path**: mirrors_fullcalendar/temporal ## Basic Information - **Project Name**: temporal - **Description**: A lightweight polyfill for Temporal, successor to the JavaScript Date object - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-02-16 - **Last Updated**: 2026-03-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # temporal-polyfill A lightweight polyfill for [Temporal](https://tc39.es/proposal-temporal/docs/), successor to the JavaScript `Date` object Only 20 kB, [spec compliant](#spec-compliance) ## Table of Contents - [Installation](#installation) - [Comparison with `@js-temporal/polyfill`](#comparison-with-js-temporalpolyfill) - [Spec Compliance](#spec-compliance) - [Browser Support](#browser-support) - [BigInt Considerations](#bigint-considerations) - [Tree-shakable API](#tree-shakable-api) (coming soon) ## Installation ``` npm install temporal-polyfill ``` Import as an ES module without side effects: ```js import { Temporal } from 'temporal-polyfill' console.log(Temporal.Now.zonedDateTimeISO().toString()) ``` Or, import globally: ```js import 'temporal-polyfill/global' console.log(Temporal.Now.zonedDateTimeISO().toString()) ``` Use a ` ``` ## Comparison with `@js-temporal/polyfill`
| Package |
temporal-polyfill
|
@js-temporal/polyfill
|
| Repo | fullcalendar/temporal-polyfill | js-temporal/temporal-polyfill |
| Creators | FullCalendar lead dev arshaw | Champions of the Temporal proposal |
| Minified+gzip size | 19.8 KB | 51.9 KB (+162%) |
| Spec date | Mar 2025 | Mar 2025 |
| BigInt approach | Internally avoids BigInt operations altogether | Internally relies on JSBI |
| Global usage in ESM |
import 'temporal-polyfill/global'
|
Not currently possible |
| Minimum required browsers for ISO/gregory calendars: | |||||
| Chrome 60 (Jul 2017) |
Firefox 55 (Aug 2017) |
Safari 11.1 (Mar 2018) |
Safari iOS 11.3 (Mar 2018) |
Edge 79 (Jan 2020) |
Node.js 14 (Apr 2020) |
|
If you transpile, you can support older browsers down to: |
|||||
| Chrome 57 (Mar 2017) |
Firefox 52 (Mar 2017) |
Safari 10 (Sep 2016) |
Safari iOS 10 (Sep 2016) |
Edge 15 (Apr 2017) |
Node.js 14 (Apr 2020) |
|
For non-ISO/gregory calendars, requirements are higher: |
|||||
| Chrome 80 (Feb 2020) |
Firefox 76 (May 2020) |
Safari 14.1 (Apr 2021) |
Safari iOS 14.5 (Apr 2021) |
Edge 80 (Feb 2020) |
Node.js 14 (Apr 2020) |