method accessed
Documentation for method accessed
assembled from the following types:
class IO::Special
From IO::Special
(IO::Special) method accessed
method accessed(IO::Special: --> Instant)
The last accessed time for the filehandle. It always returns an Instant
type object.
class IO::Path
From IO::Path
(IO::Path) 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