. 1 ? < PHP 2 echo "last modified time:." DATE (, "Ymd H:: S I." Getlastmod "\ n-"; ()).
The main function introduction:
date () function is used to format a local time / date
date ( string $format [, int $timestamp ] ) : string
Returns the integer string timestamp according to a given format string generated. If no timestamp using local current time. In other words, timestamp is optional, default is time ().
Starting from PHP 5.1.1 has several useful constants may be used as a standard date / time format specified format parameter. Save the time stamp of the time of the request to initiate the $ _SERVER [ 'REQUEST_TIME'] in.
Note: The typical range of valid timestamps are GMT December 13, 1901 20:45:54 to January 19 2038 03:14:07. (This 32-bit range of the minimum and maximum in line with signed integer). However, this range is limited from 1 January 1970 to 19 January 2038 in some systems (such as Windows) before PHP 5.1.
getlastmod () function is used to obtain the page was last modified
getlastmod ( void ) : int
Get the main script executed last modified.
The return value, return to the current page was last modified. This value is a Unix timestamp , can be passed DATE () . FALSE on error.