https://github.com/tomkyle/datetime
DateTime Helper classes for PHP
https://github.com/tomkyle/datetime
Last synced: 7 months ago
JSON representation
DateTime Helper classes for PHP
- Host: GitHub
- URL: https://github.com/tomkyle/datetime
- Owner: tomkyle
- License: mit
- Created: 2014-04-10T08:29:55.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-10T17:15:41.000Z (about 12 years ago)
- Last Synced: 2024-12-29T11:45:34.932Z (over 1 year ago)
- Language: PHP
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
#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
```php