Parse, validate, manipulate, and display dates in javascript. momentjs.com
Find a file
Iskren Ivov Chernev 12f2c29cbf Merge pull request #1934 from ogwiz2/develop
Fixed capitalization in comments
2014-09-27 14:04:16 -07:00
benchmarks moar speed 2014-07-29 22:30:42 -07:00
locale [locale/ar] Use native plural forms 2014-09-05 00:02:51 -07:00
min Build 2.8.3 2014-09-05 00:49:45 -07:00
tasks Fixed capitalization in comments 2014-09-21 22:09:53 -07:00
test [locale/ar] Use native plural forms 2014-09-05 00:02:51 -07:00
.gitignore moar speed 2014-07-29 22:30:42 -07:00
.jscs.json Use only single quotes 2014-08-21 00:21:17 +03:00
.npmignore Ignore tests when publishing to npm 2013-12-09 18:11:38 +01:00
.spmignore update .spmignore 2014-09-04 23:44:39 -07:00
.travis.yml make CI build faster 2014-09-04 21:59:35 -07:00
bower.json Bump version to 2.8.3 2014-09-05 00:46:55 -07:00
CHANGELOG.md Update changelog for 2.8.3 2014-09-05 00:46:23 -07:00
component.json Bump version to 2.8.3 2014-09-05 00:46:55 -07:00
composer.json s/lang/locale 2014-07-14 00:46:19 -04:00
CONTRIBUTING.md s/lang/locale 2014-07-14 00:46:19 -04:00
ender.js play nicely within an Ender build 2012-04-04 14:30:30 +10:00
Gruntfile.js Remove unnecessary package.json processing step during build 2014-09-05 00:48:46 -07:00
LICENSE update copyright year range 2014-02-03 22:38:00 -08:00
moment.js Bump version to 2.8.3 2014-09-05 00:46:55 -07:00
package.js add a dojo build profile 2012-11-25 19:38:56 -05:00
package.json Bump version to 2.8.3 2014-09-05 00:46:55 -07:00
README.md more simplification 2014-07-06 14:31:05 -04:00

NPM version NPM downloads MIT License Build Status

A lightweight javascript date library for parsing, validating, manipulating, and formatting dates.

Documentation

Upgrading to 2.0.0

There are 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 two digit year parsing cutoff to match strptime.

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

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

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

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

Changelog

Contributing

License

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