WOOF_File :: modified( String $format = null )
Returns:
-
String
A formatted date, if format is provided.
-
Integer
A timestamp of the date otherwise.
Returns the last modified time of a file as a date value or formatted date string, which is accessed via PHP’s filemtime function. This is likely to be the most useful of all of the date methods in this class, and the most reliably reported.
Note: the format string uses the same format as the PHP date function, with the same token extensions supported by the date_format.
Parameters:
-
String $format = null
A string to format the date.