$media->modified($format = false, $handler = null)

Returns the unix timestamp or a formatted date for when the file has been modified

  • $format (string)
    Date format
  • $handler (string)
    Formatting function (date or strftime)
  • return (integer | string)

Example

// unix timestamp
echo $media->modified();

// formatted date
echo $media->modified('d/m/Y');

// formatted date using strftime
echo $media->modified('%d/%m/%Y', 'strftime');

Is something missing or incorrect? Edit this page on Github…