Clock %X changed after Tcl 8.4
Closed / Out of Dateddf8bcff6088d00a505304d50de692743e826ab5Created 11 years agoUpdated 10 years ago
Descriptionplain2015-11-02 12:52:34
Starting with 8.5 the %X parameter for the clock command returns time in 24 hour format. Earlier versions returned 12 hour format. Causes problems for scripts that parse results.
puts "[clock format [clock seconds] -format {%a %x %X}]"
Tcl 8.4
Wed 10/28/2015 03:42:05 PM
Tcl 8.5
Wed 10/28/2015 15:42:23
apnadkarniplain2016-07-10 07:10:12
Since this "new" behaviour is now existing for almost a decade, there is no way it can be changed back to the 8.4 one without breaking scripts again. Hence closing.
Log in (anonymous is fine) to add a comment.