Registry / utility / moment-moment

moment-moment

JSON →
library2.30.1phppackagistunverified

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

composer require moment/moment
INSTALL
IMPORT
SIG · MOMENT-MOMENT
M
moment-moment
utilityphpv2.30.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Moment
use Moment\Moment;

Create a Moment object and format a date.

use Moment\Moment; $m = new Moment('2023-01-01'); echo $m->format('Y-m-d');
Debug
Known issues
gotchaThis is a PHP port of Moment.js; not all JavaScript features are available.
fix
Check the PHP port documentation for differences.
affects: *
Upgrade
Version history
2.30.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
moment-moment — pip install moment-moment · libregistry