Overview
| Artifact ID: | a6f2df37b646129daf5476c070ccfab74f60a095348a11c45a6573ff6a6ec611 |
|---|---|
| Ticket: | 4718b41c56d8c135b018b589c3f031b1262d26c6
windows x86 & x64: file mtime overflows in modification date (2038?, windows 32-bit time_t?) |
| User & Date: | jan.nijtmans on 2019-07-08 15:09:38 |
Changes
- icomment:
OK, this is what I get with tclsh90.exe, built with mingw-w64 (32-bit) from trunk: tclsh90.exe % set fn test.txt; close [open $fn w] % puts [file mtime $fn [clock scan 01/01/2070 -gmt 1]] 3155760000 % puts [clock format [file mtime $fn] -gmt 1] Wed Jan 01 00:00:00 GMT 2070 % file delete $fn % parray tcl_platform tcl_platform(byteOrder) = littleEndian tcl_platform(engine) = Tcl tcl_platform(machine) = intel tcl_platform(os) = Windows NT tcl_platform(osVersion) = 10.0 tcl_platform(pathSeparator) = ; tcl_platform(platform) = windows tcl_platform(pointerSize) = 4 tcl_platform(threaded) = 1 tcl_platform(user) = Jan.Nijtmans tcl_platform(wordSize) = 4 % So, what version of mingw did you compile with? 64-bit time_t for win32 was introduced in Visual Studio 2005, and only recently adopted in mingw-w64 (I tried this a few years ago, then it didn't work ....)
- login: "jan.nijtmans"
- mimetype: "text/plain"