This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: expect and tclsh give different output from "clock scan"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]