After reading the document, I think these two functions are very similar. they are arrays that return date, time, and other information based on the timestamp. In addition, getdate can replace localtime, so what does localtime mean? After reading the document, I think these two functions are very similar. they are arrays that return date, time, and other information based on the timestamp. In addition, getdate can replace localtime, so what does localtime mean?
Reply content:
After reading the document, I think these two functions are very similar. they are arrays that return date, time, and other information based on the timestamp. In addition, getdate can replace localtime, so what does localtime mean?
localtime
In the obtained array, the year starts 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)