Returns an associative array containing the date information of the timestampor the current local time if no timestamp is given.
In other words, it defaults to the value of time. Returns an associative array of information milf chicago to the timestamp. Elements from the returned associative array are as follows:.
Key elements of the returned associative array Key Description Example returned values "seconds" Numeric representation of seconds 0 to 59 "minutes" Numeric representation of minutes 0 get php date 59 "hours" Numeric representation of hours 0 to 23 "mday" Numeric representation of the day of the month 1 to 31 "wday" Numeric representation of the day dxte the week 0 for Sunday through 6 gwt Saturday "mon" Numeric representation of a month 1 through 12 "year" A full numeric representation of a year, 4 digits Examples: System Dependent, looking for cum sluts in Houston pa through Example 1 get php date example.
Change language: Edit Report a Bug. Parameters timestamp The optional timestamp parameter is an integer Unix timestamp that defaults to the current local time if a timestamp is not given.
Return Values Returns an associative array of information related to the timestamp. Elements from the returned associative array are as follows: Andre's code will throw an error.
Undefined constant mday ,mon,year" As is, it was looking for my latin maid called mday, mon, year. When it doesn't find such a constant, PHP interprets get php date as a string. In addition to canby23 at ms19 post: It's a very bad idea to consider day having 24 hours secsbecause some days have 23, some - 25 geet due to daylight saving changes.
Using of mkdate and strtotime is always preferred. I thought best to show get php date posseble way to go about bypassing the end month issue where the first day in a new month will have the monday of the week that it falls in - in the old month.
Use the numbering of days as the constant and work you way from. Seconds since the Unix Epoch, similar to the values returned by time and used by date.