PHPackages                             tomkyle/datetime - 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. tomkyle/datetime

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

tomkyle/datetime
================

PHP DateTime Helper classes

1.0.1(12y ago)030MITPHPPHP &gt;=5.4.0

Since Apr 10Pushed 12y ago1 watchersCompare

[ Source](https://github.com/tomkyle/DateTime)[ Packagist](https://packagist.org/packages/tomkyle/datetime)[ RSS](/packages/tomkyle-datetime/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (4)Used By (0)

\#tomkyle/DateTime

This small package contains some date and time related classes for the time being a small class that creates a MySQL-ready string representation from a PHP DateTime object.

As you know, PHP's DateTime class already offers a [format method.](http://www.php.net/manual/en/datetime.format.php) But calling it everytime you need it in MySQL context with that `Y-m-d H:i:s` parameter may be annoying (and feel unclean, somehow).

\##Usage

```
