Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 50 | All time: 10,701 This week: 206 |
Version | License | PHP version | Categories | |||
mezon-date-time-util 1.0 | MIT/X Consortium ... | 5 | PHP 5, Time and Date |
Description | Author | |
This package can perform useful operations with date and time. |
Just print
composer require mezon/date-time-utils
You can specify necessary locale by setting up the DateTimeUtils::$locale variable. For example:
DateTimeUtils::$locale = 'en';
Method returns true if the passed date is today
DateTimeUtils::isToday(string $date):bool
Method returns true if the passed date was yesterday
DateTimeUtils::isYesterday(string $date):bool
Method returns day and literal representation of month from the date. For example the string "1 of july" will be returned for the date '2020-07-01'
DateTimeUtils::dayMonth(string $date): string
Files (7) |
File | Role | Description | ||
---|---|---|---|---|
res (1 directory) | ||||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
DateTimeUtils.php | Class | Class source | ||
phpunit.xml | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
mezon-date-time-util-2020-11-11.zip 9KB | |
mezon-date-time-util-2020-11-11.tar.gz 8KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.