$ Timestamp123163300; from1970110: 0: 0 $ datetimedate (Y-m-dH: I: s, $ timestamp); strtotime ($ datetime) echodate (Ymd) time (); the current timestamp getdate (time) microtime (); returns a string, which is separated into two parts. The latter part is equivalent to time () usage: date (formula, [hour
$ Timestamp = 12100003300; // from 1970/1/1 $ datetime = date (Y-m-d H: I: s, $ timestamp); strtotime ($ datetime) echo date (Y/m/d) time (); // The current timestamp getdate (time) microtime (); returns a string, which is separated into two parts by space, the last part is equivalent to time () usage: date (type, [hour
$ Timestamp = 12100003300; // from 1970/1/1 $ datetime = date ('Y-m-d H: I: s', $ timestamp); strtotime ($ datetime) echo date ('y/m/D') time (); // current Timestamp
Getdate (time)
Microtime (); returns a string, which is divided into two parts by space. The latter part is equivalent to time ()
Usage: date (format, [time]);
Day:
$ Now = getdate (time ());
$ Today = mktime (0, 0, $ now ['mon'], $ now ['mday'], $ now ['Year']);