In IO::Special§

See primary documentation in context for method modified

method modified(IO::Special:D: --> Instant)

The last modified time for the filehandle. It always returns an Instant type object.

In IO::Path§

See primary documentation in context for method modified

Returns an Instant object indicating when the content of the file was last modified. Compare with changed.

say "path/to/file".IO.modified;          # Instant:1424089165
say "path/to/file".IO.modified.DateTime; # 2015-02-16T12:18:50Z