In IO::Special§
See primary documentation in context for method accessed
method accessed(IO::Special: --> Instant)
The last accessed time for the filehandle. It always returns an Instant
type object.
In IO::Path§
See primary documentation in context for method accessed
Return an Instant object representing the timestamp when the file was last accessed. Note: depending on how the filesystem was mounted, the last accessed time may not update on each access to the file, but only on the first access after modifications.
say "path/to/file".IO.accessed; # Instant:1424353577say "path/to/file".IO.accessed.DateTime; # 2015-02-19T13:45:42Z