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