A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/js-joda/js-joda below:

js-joda/js-joda: :clock2: Immutable date and time library for javascript

Immutable date and time library for JavaScript

js-joda is an immutable date and time library for JavaScript. It provides a simple, domain-driven and clean API based on the ISO calendar system, which is the de facto world calendar following the proleptic Gregorian rules.

Why yet another JavaScript date and time library? The ThreeTen domain models

Install joda using npm

npm install @js-joda/core

Then require it to any module

var LocalDate = require('@js-joda/core').LocalDate;

var d = LocalDate.parse('2012-12-24').atStartOfDay().plusMonths(2); // 2013-02-24T00:00:00

To use js-joda from a browser, download js-joda from a cdn (eg https://cdn.jsdelivr.net/npm/@js-joda/core) either dist/js-joda.min.js or dist/js-joda.js (with sourcemaps for development). Then add it as a script tag to your page

<script src="js-joda.min.js"></script>
<script>
    var LocalDate = JSJoda.LocalDate;
    var d = LocalDate.parse('2012-12-24').atStartOfDay().plusMonths(2); // 2013-02-24T00:00:00
</script>

js-joda consist of four packages:

package name description path @js-joda/core Implementation of the ThreeTen Classes and API /packages/core @js-joda/timezone Implementation of timezone calculation based on the iana Time Zone Database /packages/timezone @js-joda/locale Implementation of locale specific functionality for js-joda, especially for formatting and parsing locale specific dates /packages/locale @js-joda/extra Implementation of the ThreeTen-Extra Classes and API /packages/extra

The @js-joda/examples package is for testing the different build artifacts in different context, like webpack, browser node, etc.

Contributions are always welcome. Before contributing please read the code of conduct & search the issue tracker. We use GitHub issues. Your issue may have already been discussed or fixed. To contribute, fork js-joda, commit your changes, & send a pull request.

By contributing to js-joda, you agree that your contributions will be licensed under its BSD license.

Note that only pull requests and issues that match the threeten backport API will be considered. Additional requested features will be rejected.

The API of this project (as far as possible with JavaScript), a lot of implementation details and documentation are just copied but never equalled.

Milestone 1: Core domains (reached with version v1.0.0) Milestone 2: IANA timezone support (reached with version v1.2.0) Milestone 3: Locale support (reached with v2.0.0 of @js-joda/locale)

see the plugin @js-joda/locale


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4