Timestamp
Creation, parsing, and conversion of timestamps
|
![Latest Stable Version] ![License]
This library provides a convenient wrapper around DateTime to create, parse, and format timestamps.
Additional documentation about the library can be found on MediaWiki.org.
$ts = new ConvertibleTimestamp( '2012-07-31T19:01:08Z' ); $formatted = $ts->getTimestamp( TS_UNIX ); // Shorthand $formatted = ConvertibleTimestamp::convert( TS_UNIX, '2012-07-31T19:01:08Z' );
composer install --prefer-dist composer test