File modification time: Difference between revisions
m
→{{header|Go}}: library change
m (→{{header|PowerShell}}: added mentions of LastAccessTime and CreationTime) |
m (→{{header|Go}}: library change) |
||
Line 399:
fmt.Println("mod time was:", foo.ModTime())
mtime := time.Now()
atime := mtime // a default, because os.Chtimes has an atime parameter.
// but see if there's a real atime that we can preserve.
}
os.Chtimes(filename, atime, mtime)
|