Download the PHP package alroniks/dtms without Composer
On this page you can find all versions of the php package alroniks/dtms. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alroniks/dtms
More information about alroniks/dtms
Files in alroniks/dtms
Package dtms
Short Description Classes for manipulate dates and intervals with microseconds precision
License MIT
Homepage http://alroniks.github.io/dtms
Informations about the package dtms
DateTime with Microseconds
DateTime and DateInterval classes with support of microseconds
NOTE! This package not fully tested, so use it with caution.
This small package with two classes just wrapper around built in PHP classes for work with date and time but with support operations with microseconds.
Installation
Package use PSR-4 standard, so for using this classes just install package using Composer.
Usage
After installation you can create DateTime instances with microseconds.
Also you can modify DateTime with microseconds. Supported words "microseconds", "microsecond", "micro", "mic".
And of course this package allow usage true ISO8601 format for date intervals with microseconds.
Class DateTime support standard methods, such as add
, sub
, diff
, format
etc.
For using native DateTime and DateInteval classes together with package use root namespace for it:
Note! Current package may work incorrectly with different time zones, so it need extra check and more tests.
If you found error or weird behavior, send me issue report, please.
Credits
License
The MIT License (MIT). Please see LICENSE for more information.