Just look at the document, feel the two functions are similar, are based on the time stamp to return the date, time and other information array, and from the information returned to see getdate can completely replace localtime, then ask LocalTime what is the meaning of existence?
Reply content:
Just look at the document, feel the two functions are similar, are based on the time stamp to return the date, time and other information array, and from the information returned to see getdate can completely replace localtime, then ask LocalTime what is the meaning of existence?
localtime
Gets the array in which the year is starting from 1900
Array([tm_sec] => 37[tm_min] => 22[tm_hour] => 3[tm_mday] => 9[tm_mon] => 9[tm_year] => 116[tm_wday] => 0[tm_yday] => 282[tm_isdst] => 0)Array([seconds] => 37[minutes] => 22[hours] => 3[mday] => 9[wday] => 0[mon] => 10[year] => 2016[yday] => 282[weekday] => Sunday[month] => October[0] => 1475983357)