PHPackages                             litipk/php-jiffy - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. litipk/php-jiffy

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

litipk/php-jiffy
================

A library to handle precise timestamps the easy way.

1.4.0(10y ago)935.5k↑60%1MITPHPPHP &gt;=5.5.0

Since Oct 26Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Litipk/php-jiffy)[ Packagist](https://packagist.org/packages/litipk/php-jiffy)[ RSS](/packages/litipk-php-jiffy/feed)WikiDiscussions master Synced yesterday

READMEChangelog (7)Dependencies (1)Versions (10)Used By (1)

Jiffy Universal Timestamps
==========================

[](#jiffy-universal-timestamps)

[![Author](https://camo.githubusercontent.com/a73e47e098ffe2d5b6933f841d4eb307c126af42834866e830e611728c3890fb/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d40636173746172636f2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/castarco)[![Build Status](https://camo.githubusercontent.com/7629167dcc23251fdc699f93056ca658b95ebe2a48fb46bc17c1f3876c1747d0/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4c697469706b2f7068702d6a696666792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Litipk/php-jiffy)[![Coverage Status](https://camo.githubusercontent.com/2b3850d0a55b6d5ad21598090335a5fe3dc33803ef19a7d39d078b893384a308/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6c697469706b2f7068702d6a696666792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/litipk/php-jiffy/code-structure)[![Quality Score](https://camo.githubusercontent.com/c530dad9905dc1515649b1226d327844f2042fe079a406024b0115a03a3d1a88/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6c697469706b2f7068702d6a696666792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/litipk/php-jiffy)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Packagist Version](https://camo.githubusercontent.com/0d5c9bc01c8d780863827f251b7c9adc5348e63cac6a5c83ea5f81c4fffaaf97/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4c697469706b2f7068702d6a696666792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/Litipk/php-jiffy)[![Total Downloads](https://camo.githubusercontent.com/77b91faaec00658ff328eadb1d1ec56ef792595f98f03cff51caa34a49bdedbf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c697469706b2f7068702d6a696666792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/litipk/php-jiffy)

Installation
------------

[](#installation)

```
composer require litipk/php-jiffy
```

Usage
-----

[](#usage)

The PHP Jiffy library provides the `UniversalTimestamp` class, which allows you to record timestamps with milliseconds and microseconds precision and to convert it to other "timestamp types" whenever you need to do it.

The supported PHP versions are **5.5**, **5.6**, **7.0** and **HHVM**.

```
