moment/moment


Parse, validate, manipulate, and display dates in javascript.

momentjs.com

License: MIT

Language: JavaScript


Join the chat at https://gitter.im/moment/moment

NPM version NPM downloads MIT License Build Status Coverage Status FOSSA Status SemVer compatibility

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 any new features, but the code is now written in ECMAScript 6 modules and placed inside src/. Previously moment.js, locale/*.js and test/moment/*.js, test/locale/*.js contained the source of the project. Now the source is in src/, temporary build (ECMAScript 5) files are placed under build/umd/ (for running tests during development), and the moment.js and locale/*.js files are updated only on release.

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

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 Open Source Helpers

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

In addition to contributing code, you can help to triage issues. This can include reproducing bug reports, or asking for vital information such as version numbers or reproduction instructions. If you would like to start triaging issues, one easy way to get started is to subscribe to moment/moment on CodeTriage.

License

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

FOSSA Status

Project Statistics

Sourcerank 24
Repository Size 17 MB
Stars 41,591
Forks 6,253
Watchers 969
Open issues 344
Dependencies 554
Contributors 504
Tags 77
Created
Last updated
Last pushed

Top Contributors See all

Iskren Ivov Chernev Tim Wood Isaac Cambron Kunal Marwaha TGJ Gilmore Andre Polykanine A.K.A. Menelion Elensúlë Matt Johnson Ash Pierre Spring Igor Ribeiro Lima Mayank Badola Maggie Pint Graham Fairweather Nicholas Bollweg Kruy Vanna Jean-Baptiste Le Duigou mrtnjrrtt Tim Fish Weldan Jamili kkopanidis

Packages Referencing this Repo

moment1
Parse, validate, manipulate, and display dates in javascript.
Latest release 2.24.0 - Published - 41.6K stars
momentjs
Parse, validate, manipulate, and display dates in javascript.
Latest release 2.24.0 - Published - 41.6K stars
moment
Parse, validate, manipulate, and display dates in javascript.
Latest release 2.24.0 - Published - 41.6K stars
gfgf
Parse, validate, manipulate, and display dates in javascript.
Latest release 2.24.0 - Published - 41.6K stars
@ladjs/moment
Parse, validate, manipulate, and display dates
Latest release 2.24.0 - Published - 41.6K stars
@bgpat/moment
Parse, validate, manipulate, and display dates
Latest release 2.20.1 - Published - 41.6K stars
mirror-moment
Parse, validate, manipulate, and display dates
Latest release 2.18.1 - Published - 41.6K stars
node-moment
nodejs port of moment.js
Latest release 2.5.1 - Published - 41.6K stars
moment_test
Parse, validate, manipulate, and display dates
Latest release 2.13.1 - Published - 41.6K stars
spm-moment
Parse, validate, manipulate, and display dates
Latest release 2.10.6 - Updated - 41.6K stars
whytobe-moment
Fork version of BE Support. Parse, validate, manipulate, and display dates
Latest release 2.10.6 - Published - 41.6K stars
org.webjars.npm:moment
WebJar for moment
Latest release 2.22.2 - Updated - 41.6K stars
mquandalle:moment
Moment.js (official): parse, validate, manipulate, and display dates - official Meteor packaging
Latest release 1.0.1 - Updated - 41.6K stars
shimney-moment
Shimney package: moment. Parse, manipulate, and display dates.
Latest release 2.8.3 - Updated - 41.6K stars
moment-component
Parse, manipulate, and display dates.
Latest release 1.7.0 - Published - 41.6K stars
moment
Parse, validate, manipulate, and display dates
Latest release 2.24.0 - Updated - 41.6K stars
jx-moment
Parse, validate, manipulate, and display dates
Latest release 1.0.0 - Published - 41.6K stars
moment-wepay
Parse, validate, manipulate, and display dates
Latest release 2.22.2 - Published - 41.6K stars
org.webjars.bowergithub.moment:moment
WebJar for moment
Latest release 2.22.2 - Updated - 41.6K stars
org.webjars.bower:moment
WebJar for moment
Latest release 2.22.2 - Updated - 41.6K stars

Recent Tags See all

2.24.0 January 21, 2019
2.23.0 December 13, 2018
2.22.2 June 01, 2018
2.22.1 April 15, 2018
2.22.0 March 30, 2018
2.21.0 March 02, 2018
2.20.1 December 19, 2017
2.20.0 December 17, 2017
2.20.0 December 17, 2017
2.19.4 December 11, 2017
2.19.3 November 29, 2017
2.19.2 November 11, 2017
2.19.1 October 11, 2017
2.19.0 October 10, 2017
2.18.1 March 21, 2017

Interesting Forks See all

WhoopInc/frozen-moment-OLD
NOW A MOMENT PLUGIN:
JavaScript - MIT - Last pushed - 9 stars
ichernev/moment
Parse, manipulate, and display dates in javascript.
JavaScript - MIT - Last pushed - 6 stars
mquandalle/moment
Parse, validate, manipulate, and display dates in javascript.
JavaScript - MIT - Last pushed - 5 stars - 2 forks
caio-ribeiro-pereira/moment
Parse, manipulate, and display dates in javascript.
JavaScript - MIT - Last pushed - 3 stars - 1 forks
julionc/moment
Parse, validate, manipulate, and display dates in javascript.
JavaScript - MIT - Last pushed - 3 stars - 2 forks

Something wrong with this page? Make a suggestion

Last synced: 2019-01-21 22:09:19 UTC

Login to resync this repository