GithubHelp home page GithubHelp logo

antiarin / proposal-temporal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tc39/proposal-temporal

0.0 0.0 0.0 116.4 MB

Provides standard objects and functions for working with dates and times.

Home Page: https://tc39.es/proposal-temporal/docs/

License: Other

Shell 0.14% JavaScript 34.49% HTML 65.37%

proposal-temporal's Introduction

Temporal

Provides standard objects and functions for working with dates and times.

Status

This proposal is currently Stage 3 and was reviewed for Stage 3 by Richard Gibson, Bradley Farias, and Daniel Ehrenberg.

This proposal is now in the hands of ECMAScript engine implementers, so the bar for making API changes is extremely high. Nonetheless, changes may occur as the result of feedback from implementation in JS engines. Editorial changes to the spec and bug fixes to the spec, tests, and docs are also ongoing, as is customary for Stage 3 proposals. Additional tests and documentation content are also being added during Stage 3.

Champions

Overview / Motivation

Date has been a long-standing pain point in ECMAScript. This proposes Temporal, a global Object that acts as a top-level namespace (like Math), that brings a modern date/time API to the ECMAScript language. For a detailed breakdown of motivations, see: Fixing JavaScript Date

Principles:

  • All Temporal objects are immutable.
  • Date values can be represented in local calendar systems (why?), but they should be convertable to and from the Proleptic Gregorian Calendar.
  • All time-of-day values are based on a standard 24-hour clock.
  • Leap seconds are not represented.

Specification Text

The specification text can be found here.

Documentation

Reference documentation and examples can be found below.

A cookbook to help you get started and learn the ins and outs of Temporal is available here

Polyfills

Polyfill Repo Status
@js-temporal/polyfill js-temporal/temporal-polyfill Alpha release available
temporal-polyfill fullcalendar/temporal-polyfill Beta release available

If you're working on a polyfill, please file an issue or PR so we can add yours here.

A non-production polyfill was built to validate this proposal. This polyfill continues to live in this repo, but only for the purposes of running tests and powering the documentation "playground" as described below.

DO NOT use this polyfill in your own projects! Instead, please use a polyfill from the table above.

Documentation Playground

When viewing the reference documentation, the non-production polyfill is automatically loaded in your browser, so you can try out Temporal by opening your browser's developer tools console.

proposal-temporal's People

Contributors

ptomato avatar ms2ger avatar justingrant avatar gibson042 avatar ryzokuken avatar frankyftang avatar anba avatar pipobscure avatar mattjohnsonpint avatar sffc avatar cjtenny avatar linusg avatar aditi-1400 avatar jessealama avatar redsquirrelious avatar maggiepint avatar littledan avatar ljharb avatar bakkot avatar jasonwilliams avatar lubrsi avatar gilmoreorless avatar jugglinmike avatar pdunkel avatar 12wrigja avatar snyk-bot avatar hax avatar h-h-h-h avatar akshgpt7 avatar liviamedeiros avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.