clock scan strangeness

This is a discussion on clock scan strangeness within the TCL forums in Programming Languages category; I was wondering why clock scan works as below: % clock scan z 1219336516 % clock scan zz unable to convert date-time string "zz" and also %clock scan "" 1219347325 it works like this with any letter. I saw that in 8.4 it was a bit different always giving 1219266000. what is the hidden cause for this behaviour?...

Go Back   Application Development Forum > Programming Languages > TCL

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-27-2008, 06:42 AM
yahalom
Guest
 
Default clock scan strangeness

I was wondering why clock scan works as below:
% clock scan z
1219336516
% clock scan zz
unable to convert date-time string "zz"

and also
%clock scan ""
1219347325

it works like this with any letter. I saw that in 8.4 it was a bit
different always giving 1219266000.
what is the hidden cause for this behaviour?
Reply With Quote
  #2  
Old 08-27-2008, 06:48 AM
suchenwi
Guest
 
Default Re: clock scan strangeness

On 27 Aug., 12:42, yahalom <yahal...@gmail.com> wrote:
> I was wondering why clock scan works as below:
> % clock scan z
> 1219336516
> % clock scan zz
> unable to convert date-time string "zz"
>
> and also
> %clock scan ""
> 1219347325
>
> it works like this with any letter. I saw that in 8.4 it was a bit
> different always giving 1219266000.
> what is the hidden cause for this behaviour?


To interpret the number returned by [clock scan], it's usually good to
[clock format] it again. I see here:

% clock format [clock scan z]
Wed Aug 27 14:45:56 CEST 2008
% clock format [clock scan now]
Wed Aug 27 12:46:09 CEST 2008
% clock format [clock scan ""]
Wed Aug 27 12:46:55 CEST 2008

So "z" gives me 2 hours ahead of "now", even though the specified
timezone is the same.
Reply With Quote
  #3  
Old 08-27-2008, 06:57 AM
Uwe Klein
Guest
 
Default Re: clock scan strangeness

suchenwi wrote:
> On 27 Aug., 12:42, yahalom <yahal...@gmail.com> wrote:
>
>>I was wondering why clock scan works as below:
>>% clock scan z
>>1219336516


> So "z" gives me 2 hours ahead of "now", even though the specified
> timezone is the same.

Z ~= ZULU ~= GMT
That and the alphabet loot at:
http://wwp.greenwichmeantime.com/info/timezone.htm

uwe
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 07:56 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.