1 [![Latest Stable Version]](https://packagist.org/packages/wikimedia/timestamp) [![License]](https://packagist.org/packages/wikimedia/timestamp)
3 Convertible Timestamp for PHP
4 ===========================
6 This library provides a convenient wrapper around DateTime to
7 create, parse, and format timestamps.
9 Additional documentation about the library can be found on
10 [MediaWiki.org](https://www.mediawiki.org/wiki/Timestamp).
16 $ts = new ConvertibleTimestamp( '2012-07-31T19:01:08Z' );
17 $formatted = $ts->getTimestamp( TS_UNIX );
20 $formatted = ConvertibleTimestamp::convert(
21 TS_UNIX, '2012-07-31T19:01:08Z'
28 composer install --prefer-dist
33 [Latest Stable Version]: https://poser.pugx.org/wikimedia/timestamp/v/stable.svg
34 [License]: https://poser.pugx.org/wikimedia/timestamp/license.svg