$unix
$unix : integer
The date only portion of a DateTime object.
parse(string|integer $date, string|integer $time = null) : \duncan3dc\Dates\Date
Parse dates in a variety of formats and create a Date object.
string|integer | $date | The date to parse |
string|integer | $time | The time to parse |
mktime(integer $hour, integer $minute, integer $second, integer $month, integer $day, integer $year) : static
Create a new DateTime object from a set of individual parts.
integer | $hour | The hour |
integer | $minute | The minute |
integer | $second | The second |
integer | $month | The month |
integer | $day | The day |
integer | $year | The year |
getMonth() : \duncan3dc\Dates\Month
Get a Month object for this date.
getYear() : \duncan3dc\Dates\Year
Get a Year object for this date.
withHours(integer $hour) : \duncan3dc\Dates\DateTime
Get a new instance but with the specified hour.
integer | $hour | The hour to use |
withMinutes(integer $minute) : \duncan3dc\Dates\DateTime
Get a new instance but with the specified minute.
integer | $minute | The minute to use |