Giter Site home page Giter Site logo

louis-aime / calendrical-javascript Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 1.5 MB

Routines for computations on calendars. Extend Date and Intl.DateTimeFormat. Allow custom calendars. Add historical gregorian calendars with custom switching date. Specify date in custom calendar. Helps creating calendars for Ecma TC39's Temporal. Handle week figures. Enhance Intl.DateTimeFormat. Extend Unicode CLDR and ICUs.

License: MIT License

JavaScript 23.25% HTML 75.01% CSS 1.74%
calendrical-computations calendar-computation-engine calendars calendar date date-format datetime intl javascript cldr

calendrical-javascript's People

Contributors

louis-aime avatar

Stargazers

 avatar

Watchers

 avatar

calendrical-javascript's Issues

Make module usable in a various environments

Stage 1: ES script available to ordinary scripting, using import ("Chronos.js"); the importing file does not need to be a module.

Stage 2: check whether alternate code testing the environment can help using Node.js.

Stage 3: use pldr as a file opened with XMLHttpRequest, which is a similar synchronization problem as importing Chronos.

Time part direction for rtl languages

Changing ":" to any ltr string e.g. " h " or " min " in rtl language context causes last part of time section to go to the right end of the formatted string. Proposed solution: insert direction indicators in string; these should be inserted in the "pldr" file, the only one that holds characters outside ANSI. Later on, these strings could be language specific.

Set date from week fields

Enhance WeekClock as to specify a date in weeks following the calendar's specifications:

  • CharacteristicDay(year) is a method provided by the calendar (or a function passed to the class)
  • Year is not a parameter, is is computed with the calendar's normal routines
  • setFromWeekFields enables it to set the day from the fields elements. It works with all types of calendars.

A special branche to be designed for this

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.