PHPackages                             romaten1/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. romaten1/moment

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

romaten1/moment
===============

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

2.22.2(7y ago)017[1 PRs](https://github.com/romaten1/moment/pulls)MITJavaScript

Since Jul 7Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (67)Used By (0)

[![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://npmcharts.com/compare/moment?minimal=true) [![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)[![FOSSA Status](https://camo.githubusercontent.com/f06808c9ca35239b93020171606ab5ae4cdb706d6a06d7e1f94c10940f53a812/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f67697425324268747470732533412532462532466769746875622e636f6d2532466d6f6d656e742532466d6f6d656e742e7376673f747970653d736869656c64)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmoment%2Fmoment?ref=badge_shield)

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

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

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) [![Open Source Helpers](https://camo.githubusercontent.com/51fac8bb5e08d9e3c9329eae33e40f73e7a23bc87600ce1a43b86f62b0591e8a/68747470733a2f2f7777772e636f64657472696167652e636f6d2f6d6f6d656e742f6d6f6d656e742f6261646765732f75736572732e737667)](https://www.codetriage.com/moment/moment)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#contributing-)

We're looking for co-maintainers! If you want to become a master of time please write to [ichernev](https://github.com/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](https://www.codetriage.com/moment/moment).

License
-------

[](#license)

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

[![FOSSA Status](https://camo.githubusercontent.com/d5192b899dd146d4728c2c88ba31bd9ffde278490df9c8837cae224ad3613559/68747470733a2f2f6170702e666f7373612e696f2f6170692f70726f6a656374732f67697425324268747470732533412532462532466769746875622e636f6d2532466d6f6d656e742532466d6f6d656e742e7376673f747970653d6c61726765)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fmoment%2Fmoment?ref=badge_large)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity78

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 ~38 days

Total

48

Last Release

2900d ago

Major Versions

2.18.1 → 3.x-dev2017-08-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/36f9fce6d5b3464a4c8b0d4a76921334afe3e39ee0e78f233202c3f8ab65ef4c?d=identicon)[romaten1](/maintainers/romaten1)

---

Top Contributors

[![ichernev](https://avatars.githubusercontent.com/u/757060?v=4)](https://github.com/ichernev "ichernev (1215 commits)")[![timrwood](https://avatars.githubusercontent.com/u/643885?v=4)](https://github.com/timrwood "timrwood (807 commits)")[![icambron](https://avatars.githubusercontent.com/u/244988?v=4)](https://github.com/icambron "icambron (220 commits)")[![marwahaha](https://avatars.githubusercontent.com/u/2541209?v=4)](https://github.com/marwahaha "marwahaha (59 commits)")[![TracyGJG](https://avatars.githubusercontent.com/u/4346753?v=4)](https://github.com/TracyGJG "TracyGJG (35 commits)")[![mattjohnsonpint](https://avatars.githubusercontent.com/u/1396388?v=4)](https://github.com/mattjohnsonpint "mattjohnsonpint (30 commits)")[![caillou](https://avatars.githubusercontent.com/u/46739?v=4)](https://github.com/caillou "caillou (23 commits)")[![ashsearle](https://avatars.githubusercontent.com/u/1166814?v=4)](https://github.com/ashsearle "ashsearle (21 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)")[![nrbgt](https://avatars.githubusercontent.com/u/7581399?v=4)](https://github.com/nrbgt "nrbgt (16 commits)")[![kruyvanna](https://avatars.githubusercontent.com/u/1171793?v=4)](https://github.com/kruyvanna "kruyvanna (14 commits)")[![jbleduigou](https://avatars.githubusercontent.com/u/1489214?v=4)](https://github.com/jbleduigou "jbleduigou (13 commits)")[![timfish](https://avatars.githubusercontent.com/u/1150298?v=4)](https://github.com/timfish "timfish (12 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)")[![kkopanidis](https://avatars.githubusercontent.com/u/9095396?v=4)](https://github.com/kkopanidis "kkopanidis (11 commits)")[![wi-ski](https://avatars.githubusercontent.com/u/12256205?v=4)](https://github.com/wi-ski "wi-ski (10 commits)")[![mdxs](https://avatars.githubusercontent.com/u/1143642?v=4)](https://github.com/mdxs "mdxs (9 commits)")

---

Tags

i18nl10nformattimedatevalidateparsemomentender

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/romaten1-moment/health.svg)](https://phpackages.com/packages/romaten1-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.2M80](/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)
