expect and tclsh give different output from "clock scan"
Keith Seitz
keiths@redhat.com
Wed Jan 5 23:14:00 GMT 2005
On Wed, 2004-12-22 at 09:20, Brad Gutt wrote:
> So, why is the output of clock scan different between
> expect and tclsh? Isn't expect using the same code as
> tclsh is using?
No, as a matter of fact, they are not using the same code. Expect on
cygwin is a "unix" application, i.e., it uses cygwin's posix layer to
call time() (from tclUnixTime.c):
expect1.1> set ::tcl_platform(platform)
unix
tclsh84> set ::tcl_platform(platform)
windows
On windows, it uses some goofy windowsy thing in tclWinTime.c to get the
time.
My guess is that cygwin/unix code and the windows code use different
epochs.
Keith
More information about the Insight
mailing list