Version 3 of file mtime

Updated 2009-01-28 12:18:38 by lars_h

file mtime name ?time?

Returns a decimal string giving the time at which file name was last modified. If time is specified, it is a modification time to set for the file (equivalent to Unix touch). The time is measured in the standard POSIX fashion as seconds from a fixed starting time (often January 1, 1970). If the file doesn't exist or its modified time cannot be queried or set then an error is generated.


LV Recently I was told by a Tcl programmer that they could not use file mtime on a Windows system because it didn't return the right value after DST took place.

I was surprised - I hadn't heard of that, and wasn't certain exactly what the implications of that might be. Is this something that experienced Windows programmers just know?


Primero: Some body know how set mtime with pure tcl code?

Lars H: Use the file mtime command with the time you want to set to, as described above! Or didn't that work for you?


See also: