Re: winter and summer time confusion in clock and tcl 8.4.12 and 8.5a4 (starpack)



* "MartinLemburg@UGS" <martin.lemburg.ugs@xxxxxxx>
| % clock format [clock seconds]
| Thu Mar 30 13:59:02 +0100 2006
| % clock format [clock scan now]
| Thu Mar 30 14:00:02 +0100 2006
|
| But it is one hour later! It does not seem to matter, if "clock scan
| now" or "clock seconds" is used!

- is TZ set on the commandline prior to invoking tclsh? Does
'date' report the correct date on the commandline?

On my system (Suse Linux 9.3), this currently is
% date -R
Thu, 30 Mar 2006 16:47:51 +0200
Note the +0200.

- is TZ set: $env(TZ) *in* tclsh?

As Michael pointed out, the +0100 looks like tclsh gets the wrong idea
of the timezone you're in.

R'
.



Relevant Pages

  • LC_TIME (Was: Re: Why with seconds?)
    ... not [clock scan], and didn't actually function on all platforms. ... The result that [clock format] would ... To make the locale available to applications, ...
    (comp.lang.tcl)
  • confusing [clock] behavior
    ... understand a [clock] behavior. ... stamp to be used in log files. ... % set now [clock format [clock seconds]] ... $ TZ=GMT+6 LANG=C tclsh ...
    (comp.lang.tcl)
  • Re: Bug in clock in current CVS?
    ... After another CVS update and a full rebuild, ... clock seconds works as expected. ... I had clock format, but not clock seconds ... >>I suspect that if the namespace does not exist, ...
    (comp.lang.tcl)
  • Re: winter and summer time confusion in clock and tcl 8.4.12 and 8.5a4 (starpack)
    ... I'm not on the boundary of daylight savings time, ... like e.g. today) must cause "clock scan" to return the real, ... % clock format ... Thu Mar 30 16:10:05 CEST 2006 ...
    (comp.lang.tcl)
  • Re: fooled by shifting date
    ... I've always believed that [clock ... physical time elapsed since Jan 1 1970), and that only [clock format] ... (in France, CET timezone) ... Since DST is then only a view of strftime/, ...
    (comp.lang.tcl)