Skip to content

Commit b2f5a76

Browse files
committed
Toss non-more-readable "more readable" portion
1 parent 413a693 commit b2f5a76

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

doc/Type/IO/Path.pod

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -416,15 +416,10 @@ last modified.
416416
417417
say "path/to/file".IO.modified; # e.g. Instant:1424089165
418418
419-
To obtain a human-readable form of the timestamp, use a L<DateTime> object:
420-
421-
say DateTime.new("path/to/file".IO.modified); # e.g. 2015-02-16T12:18:50Z
422-
423-
or more readably:
419+
To obtain a human-readable form of the timestamp, call C<DateTime> method
420+
on the returned C<Instant>, to convert it into a L<DateTime> object:
424421
425-
my $modification_instant = "path/to/file".IO.modified;
426-
my $modification_time = DateTime.new($modification_instant);
427-
say $modification_time; # e.g. 2015-02-16T12:18:50Z
422+
say "path/to/file".IO.modified.DateTime; # e.g. 2015-02-16T12:18:50Z
428423
429424
=head2 method accessed
430425

0 commit comments

Comments
 (0)