Skip to content

Kirby 6.0.0

F::modified()

Get the file's last modification time.

F::modified(string $file, IntlDateFormatter|string|null $format = null, 'date'|'intl'|'strftime'|null $handler = null): int|false|string

Parameters

Name Type Default Description
$filerequired string no default value
$format IntlDateFormatterorstringornull null
$handler 'date'or'intl'or'strftime'ornull null Custom date handler or null for the globally configured one

Return types

intorfalseorstring

Parent class

Kirby\Filesystem\F