The changed routine

Combined from primary sources listed below.

In class IO::Path ( Type/IO/Path )§

See primary docmentation in context for method changed.

method changed§

Returns an Instant object indicating the metadata of the file or directory was last changed (e.g. permissions, or files created/deleted in directory). Compare with modified.

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

In class IO::Special ( Type/IO/Special )§

See primary docmentation in context for method changed.

method changed§

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

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