Koahub.js processing and displaying date codes based on node. js

Source: Internet
Author: User

moment

Parse, validate, manipulate, and display dates

A Lightweight JavaScript Date library for parsing, validating, manipulating, and formatting dates.

Documentation

Port to ECMAScript 6 (version 2.10.0)

Moment 2.10.0 does not bring no new features, but the code was now written in ECMAScript 6 modules and placed src/ inside . Previously moment.js , locale/*.js and test/moment/*.js , test/locale/*.js contained the source of the project. Now src/ the source was in, temporary build (ECMAScript 5) files were placed under build/umd/ (for running tests during DEVELOPM ENT), and the and files is updated only on moment.js locale/*.js release.

If you want to use a particular revision of the code, make sure to run grunt transpile update-index , so and is moment.js locales/*.js synced with src/* . We might place, a commit hook in the future.

Upgrading to 2.0.0

There is a number of small backwards incompatible changes with version 2.0.0. See the full descriptions here

    • Changed language ordinal method to return the number + ordinal instead of just the ordinal.

    • Changed Digit year parsing cutoff to match strptime.

    • removed and in favor of and moment#sod moment#eod moment#startOf moment#endOf .

    • Removed in moment.humanizeDuration() favor of moment.duration().humanize() .

    • Removed the Lang data objects from the top level namespace.

    • Duplicate Date passed to moment() instead of referencing it.

Changelogcontributing

We ' re looking for co-maintainers! If you want to become a master of time, write to Ichernev.

License

Moment.js is freely distributable under the terms of the MIT license.

Wemall Open Source Micro-mall, mall, mall source code, level three distribution, micro-fresh, micro-fruit, micro-takeaway, micro-ordering---professional system

Wemall Address:http://www.wemallshop.com

Code Address: http://js.koahub.com/home/feature/moment

Koahub.js processing and displaying date codes based on node. JS

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.