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.

Frequently asked questions

See FAQ.md.

License

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

FOSSA Status

Project Statistics

Sourcerank 26
Repository Size 18.5 MB
Stars 44,139
Forks 6,622
Watchers 938
Open issues 184
Dependencies 554
Contributors 511
Tags 82
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ë Ash Matt Johnson 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

moment
Parse, validate, manipulate, and display dates
Latest release 2.26.0 - Updated - 44.1K stars
org.webjars.npm:moment
WebJar for moment
Latest release 2.26.0 - Updated - 44.1K stars
moment-wepay
Parse, validate, manipulate, and display dates
Latest release 2.22.2 - Published - 44.1K stars
moment_test
Parse, validate, manipulate, and display dates
Latest release 2.13.1 - Published - 44.1K stars
whytobe-moment
Fork version of BE Support. Parse, validate, manipulate, and display dates
Latest release 2.10.6 - Published - 44.1K stars
org.webjars.bower:moment
WebJar for moment
Latest release 2.25.3 - Updated - 44.1K stars
cobegreene-my-core
"The core types of my-app"
Latest release 1.0.0 - Published - 44.1K stars
@ladjs/moment
Parse, validate, manipulate, and display dates
Latest release 2.24.0 - Published - 44.1K stars
jx-moment
Parse, validate, manipulate, and display dates
Latest release 1.0.0 - Published - 44.1K stars
@deplug/moment.min
Parse, validate, manipulate, and display dates
Latest release 2.20.0 - Published - 44.1K stars
node-moment
nodejs port of moment.js
Latest release 2.5.1 - Published - 44.1K stars
spm-moment
Parse, validate, manipulate, and display dates
Latest release 2.10.6 - Updated - 44.1K stars
org.webjars.bower:momentjs
WebJar for moment
Latest release 2.22.2 - Updated - 44.1K stars
timrwood/moment
Parse, validate, manipulate, and display dates in JavaScript.
Latest release 2.24.0 - Updated - 44.1K stars
moment1
Parse, validate, manipulate, and display dates in javascript.
Latest release 2.26.0 - Published - 44.1K stars
gfgf
Parse, validate, manipulate, and display dates in javascript.
Latest release 2.26.0 - Published - 44.1K stars
moment/moment
Parse, validate, manipulate, and display dates in JavaScript.
Latest release 2.24.0 - Updated - 44.1K stars
tea-moment
Parse, validate, manipulate, and display dates
Latest release 2.24.0 - Published - 44.1K stars
momentjs
Parse, validate, manipulate, and display dates in javascript.
Latest release 2.26.0 - Published - 44.1K stars
moment
Parse, validate, manipulate, and display dates in javascript.
Latest release 2.26.0 - Published - 44.1K stars

Recent Tags See all

2.26.0 May 20, 2020
2.25.3 May 12, 2020
2.25.2 May 04, 2020
2.25.1 May 01, 2020
2.25.0 May 01, 2020
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

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-11-14 05:14:41 UTC

Login to resync this repository