PHPackages                             webmodules/moment - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Localization &amp; i18n](/categories/localization)
4. /
5. webmodules/moment

ActiveLibrary[Localization &amp; i18n](/categories/localization)

webmodules/moment
=================

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

2.11.21(10y ago)02.0k↓100%2MITJavaScript

Since Jul 7Pushed 10y ago7 watchersCompare

[ Source](https://github.com/webmodule/moment)[ Packagist](https://packagist.org/packages/webmodules/moment)[ Docs](http://github.com/moment/moment/)[ RSS](/packages/webmodules-moment/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependenciesVersions (29)Used By (2)

[![Join the chat at https://gitter.im/moment/moment](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/moment/moment?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

[![NPM version](https://camo.githubusercontent.com/4b40fa507158fba62833a6d076e8516e70d80fa44c7171d07d6b682bb9034009/687474703a2f2f696d672e736869656c64732e696f2f6e706d2f762f6d6f6d656e742e7376673f7374796c653d666c6174)](https://npmjs.org/package/moment) [![NPM downloads](https://camo.githubusercontent.com/dd785709376bf4abccccb1482f5da95429df006f8384a7ef2ceea75c1f45c54f/687474703a2f2f696d672e736869656c64732e696f2f6e706d2f646d2f6d6f6d656e742e7376673f7374796c653d666c6174)](https://npmjs.org/package/moment) [![MIT License](https://camo.githubusercontent.com/db79b92834d905629b1aea42c9aa493da02060189e2af90840b1be5d6bf6ddf7/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c6174)](LICENSE) [![Build Status](https://camo.githubusercontent.com/3937f52254d197d07684d267e879918c7c0956aadf5a2a217fdde0201c2a80a8/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f6d6f6d656e742f6d6f6d656e742f646576656c6f702e7376673f7374796c653d666c6174)](http://travis-ci.org/moment/moment)[![Coverage Status](https://camo.githubusercontent.com/4b3bd3e9ef5e90b72961587863399404737ec95d1dcbdc96789823a0fb7fec6b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6d6f6d656e742f6d6f6d656e742f62616467652e7376673f6272616e63683d646576656c6f70)](https://coveralls.io/r/moment/moment?branch=develop)

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

[Documentation](http://momentjs.com/docs/)
------------------------------------------

[](#documentation)

Port to ECMAScript 6 (version 2.10.0)
-------------------------------------

[](#port-to-ecmascript-6-version-2100)

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
------------------

[](#upgrading-to-200)

There are a number of small backwards incompatible changes with version 2.0.0. [See the full descriptions here](https://gist.github.com/timrwood/e72f2eef320ed9e37c51#backwards-incompatible-changes)

- 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](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
-----------------------------------------------------------------------

[](#changelog)

[Contributing](https://github.com/moment/moment/blob/develop/CONTRIBUTING.md)
-----------------------------------------------------------------------------

[](#contributing)

We're looking for co-maintainers! If you want to become a master of time please write to [ichernev](https://github.com/ichernev).

License
-------

[](#license)

Moment.js is freely distributable under the terms of the [MIT license](https://github.com/moment/moment/blob/develop/LICENSE).

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~37 days

Recently: every ~44 days

Total

26

Last Release

3748d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c5b5b41a27c22c02fd7a9e66995586a7bc4851492eba68aa9b669faed3b9ccb9?d=identicon)[jqutils](/maintainers/jqutils)

---

Top Contributors

[![ichernev](https://avatars.githubusercontent.com/u/757060?v=4)](https://github.com/ichernev "ichernev (808 commits)")[![timrwood](https://avatars.githubusercontent.com/u/643885?v=4)](https://github.com/timrwood "timrwood (806 commits)")[![icambron](https://avatars.githubusercontent.com/u/244988?v=4)](https://github.com/icambron "icambron (214 commits)")[![caillou](https://avatars.githubusercontent.com/u/46739?v=4)](https://github.com/caillou "caillou (23 commits)")[![mbad0la](https://avatars.githubusercontent.com/u/8503331?v=4)](https://github.com/mbad0la "mbad0la (20 commits)")[![Xotic750](https://avatars.githubusercontent.com/u/216041?v=4)](https://github.com/Xotic750 "Xotic750 (17 commits)")[![mattjohnsonpint](https://avatars.githubusercontent.com/u/1396388?v=4)](https://github.com/mattjohnsonpint "mattjohnsonpint (16 commits)")[![nrbgt](https://avatars.githubusercontent.com/u/7581399?v=4)](https://github.com/nrbgt "nrbgt (16 commits)")[![jbleduigou](https://avatars.githubusercontent.com/u/1489214?v=4)](https://github.com/jbleduigou "jbleduigou (13 commits)")[![kruyvanna](https://avatars.githubusercontent.com/u/1171793?v=4)](https://github.com/kruyvanna "kruyvanna (13 commits)")[![weldan](https://avatars.githubusercontent.com/u/121695?v=4)](https://github.com/weldan "weldan (12 commits)")[![mrtnjrrtt](https://avatars.githubusercontent.com/u/3829159?v=4)](https://github.com/mrtnjrrtt "mrtnjrrtt (12 commits)")[![vnathalye](https://avatars.githubusercontent.com/u/14007809?v=4)](https://github.com/vnathalye "vnathalye (11 commits)")[![mdxs](https://avatars.githubusercontent.com/u/1143642?v=4)](https://github.com/mdxs "mdxs (9 commits)")[![eternicode](https://avatars.githubusercontent.com/u/324189?v=4)](https://github.com/eternicode "eternicode (8 commits)")[![alexstrat](https://avatars.githubusercontent.com/u/687961?v=4)](https://github.com/alexstrat "alexstrat (7 commits)")[![DamianFekete](https://avatars.githubusercontent.com/u/150717?v=4)](https://github.com/DamianFekete "DamianFekete (7 commits)")[![ianwremmel](https://avatars.githubusercontent.com/u/1182361?v=4)](https://github.com/ianwremmel "ianwremmel (7 commits)")[![raphamorim](https://avatars.githubusercontent.com/u/3630346?v=4)](https://github.com/raphamorim "raphamorim (7 commits)")[![szelga](https://avatars.githubusercontent.com/u/1784948?v=4)](https://github.com/szelga "szelga (7 commits)")

---

Tags

i18nl10nformattimedatevalidateparsemomentender

### Embed Badge

![Health badge](/badges/webmodules-moment/health.svg)

```
[![Health](https://phpackages.com/badges/webmodules-moment/health.svg)](https://phpackages.com/packages/webmodules-moment)
```

###  Alternatives

[moment/moment

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

48.1k2.1M37](/packages/moment-moment)[timrwood/moment

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

48.0k17.2k](/packages/timrwood-moment)[fightbulc/moment

Parse, validate, manipulate, and display dates in PHP w/ i18n support. Inspired by moment.js

9693.2M10](/packages/fightbulc-moment)[jenssegers/date

A date library to help you work with dates in different languages

1.8k11.2M79](/packages/jenssegers-date)[symfony/intl

Provides access to the localization data of the ICU library

2.6k199.8M1.1k](/packages/symfony-intl)[punic/punic

PHP-Unicode CLDR

1542.9M29](/packages/punic-punic)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
