Download the PHP package citripio/date without Composer
On this page you can find all versions of the php package citripio/date. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download citripio/date
More information about citripio/date
Files in citripio/date
Download citripio/date
More information about citripio/date
Files in citripio/date
Please rate this library. Is it a good library?
Informations about the package date
Date helpers for websites
Installation
Add this to your composer.json
Then:
Methods
is_today()
Receives a PHP Date date("Y-m-d H:i:s")
. Returns true
if it's today.
is_yesterday()
Receives a PHP Date date("Y-m-d H:i:s")
. Returns true
if it's yesterday.
month()
Receives an integer representing a month of the year, returns its name.
day()
Receives an integer representing a day of the week, returns its name.
get_date_components()
Useful for composing headings and other strings with dates in them.
Receives a PHP Date date("Y-m-d H:i:s")
. Returns an array containing:
- date_dow: Day name. Same as
day()
- date_day: Day number, like the 20 in "April 20th"
- date_moy: Month name. Dame as
month()
- date_distance: (today|yesterday|past)
- ordinal: Date number with an ordinal attached to it, for english dates. Eg: "20th", "3rd", "1st"
All versions of date with dependencies
PHP Build Version
Package Version
No informations.
The package citripio/date contains the following files
Loading the files please wait ....