Giter VIP home page Giter VIP logo

proposal-temporal's Introduction

Temporal

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

NOTE: The Polyfill, specification text and documentation are under continuing development and should be understood to be unstable.

Champions

Status

This proposal is currently Stage 2.

At the time of writing, all the major design decisions that we are aware of have been made, but some are not yet reflected in the API documentation, polyfill, and specification text. These are expected to be ready for TC39 delegates to review within the next few weeks, in preparation for Stage 3. After that point, the bar for making changes will become higher.

Stage 3 Reviewers:

  • Richard Gibson
  • Bradley Farias
  • Daniel Ehrenberg

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, 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.

Polyfill

A complete polyfill can be found here. When viewing the reference documentation, the polyfill is automatically loaded in your browser, so you can try it out by opening your browser's developer tools.

NOTE: We encourage you to experiment with the polyfill, but don't use it in production! The API will change before the proposal reaches Stage 3, based on feedback that we receive during this time. Please give us your feedback in the issue tracker and by taking the survey. More info: https://blogs.igalia.com/compilers/2020/06/23/dates-and-times-in-javascript/

Documentation

Reference documentation and examples can be found here.

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

proposal-temporal's People

Contributors

aayushmau5 avatar akshgpt7 avatar apaprocki avatar bartlett705 avatar ckknight avatar gibson042 avatar gilmoreorless avatar hax avatar jasonwilliams avatar jbrower2 avatar justingrant avatar kwierso avatar littledan avatar ljharb avatar maggiepint avatar mattjohnsonpint avatar mauricesvay avatar ms2ger avatar notpeter avatar pdunkel avatar pipobscure avatar ptomato avatar redsquirrelious avatar robpalme avatar ryuno-ki avatar ryzokuken avatar sffc avatar shwetank avatar snyk-bot avatar zolotyh avatar

Stargazers

 avatar

Watchers

 avatar  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.