|Last Updated|| ||Ratings|| ||Unique User Downloads|| ||Download Rankings|
|2020-11-11 (11 months ago) ||Not yet rated by the users||Total: 44 This week: 1||All time: 10,165 This week: 184|
This package can perform useful operations with date and time.
It provides several functions that can perform several types of operations with dates and times. Currently it can:
- Check is a given date is the date of today or yesterday
- Generate a text with the day and the month of a given date using localized texts for the month names read for configuration files
Utilities for data manipulation
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
Method returns true if the passed date was yesterday
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
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.