June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -1,11 +1,6 @@
|
|||
fname = "fool.txt"
|
||||
tfmt = "%FT%T%z"
|
||||
|
||||
println("The modification time of ", fname, " is ")
|
||||
println(" ", strftime(tfmt, mtime(fname)))
|
||||
fname, _ = mktemp()
|
||||
|
||||
println("The modification time of $fname is ", Dates.unix2datetime(mtime(fname)))
|
||||
println("\nTouch this file.")
|
||||
touch(fname)
|
||||
|
||||
println("The modification time of ", fname, " is now ")
|
||||
println(" ", strftime(tfmt, mtime(fname)))
|
||||
println("The modification time of $fname is now ", Dates.unix2datetime(mtime(fname)))
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ class utimbuf is repr('CStruct') {
|
|||
}
|
||||
}
|
||||
|
||||
sub sysutime(Str, utimbuf --> int) is native is symbol('utime') {*}
|
||||
sub sysutime(Str, utimbuf --> int32) is native is symbol('utime') {*}
|
||||
|
||||
sub MAIN (Str $file) {
|
||||
my $mtime = $file.IO.modified // die "Can't stat $file: $!";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue