This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Worldtime1.3.tcl working, again.

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
LOQUILLO
Voice
Posts: 14
Joined: Wed Jul 21, 2004 4:45 pm
Location: Perú

Post by LOQUILLO »

Updated main post. Fixed typo.
LOQUILLO
IRC Network: EFnet
Channel: #Spanglish
k
kettavan
Voice
Posts: 1
Joined: Fri Jan 02, 2009 7:41 am
Location: Malaysia
Contact:

Still not working.....

Post by kettavan »

guys i have tried it but yet not working...

[20:29pm] <@kettavan> !tz miami
[20:29pm] <@tami|an> The time in Miami,United States is

Help me plz.......
User avatar
LOQUILLO
Voice
Posts: 14
Joined: Wed Jul 21, 2004 4:45 pm
Location: Perú

Re: Still not working.....

Post by LOQUILLO »

kettavan wrote:guys i have tried it but yet not working...

[20:29pm] <@kettavan> !tz miami
[20:29pm] <@tami|an> The time in Miami,United States is

Help me plz.......
Strange, it's working for me.
<LOQUILLO_> !tz miami
<mario_sp> The current time in Miami, Florida, United States is 11:13 PM Eastern Daylight Time (EDT) -0400 UTC @ Sunday, September 13, 2009
LOQUILLO
IRC Network: EFnet
Channel: #Spanglish
User avatar
hm2k
Halfop
Posts: 57
Joined: Mon Sep 11, 2006 7:27 am
Location: UK

Post by hm2k »

I wrote a new worldtime.tcl which no longer uses a website to get the data.

I thought you may find this useful...

http://www.hm2k.com/posts/worldtime-tcl

Hope this helps.
T
Torrevado
Op
Posts: 101
Joined: Wed Aug 02, 2006 6:29 pm

speechles' worldtime

Post by Torrevado »

speechles, worldtime is not working for me...
Tcl error [pub_world_time]: can't read "tzzone": no such variable
About hm2k's script, if I'm not wrong it's a timezone script, not worldtime, isn't it?

Thanks.
User avatar
hm2k
Halfop
Posts: 57
Joined: Mon Sep 11, 2006 7:27 am
Location: UK

Post by hm2k »

It's both.
The zoneinfo database, also called the tz database, is a collaborative compilation of information about the world's time zones.
See http://en.wikipedia.org/wiki/Zoneinfo

What were you expecting?
T
Torrevado
Op
Posts: 101
Joined: Wed Aug 02, 2006 6:29 pm

Post by Torrevado »

What I meant is this:
<torrevado> .tz Madrid
<eggbot> torrevado, The time for the Europe/Madrid timezone is Mon Feb 01 13:35:29 2010
That is the timezone, not the real time, which is 12:35:29.
User avatar
hm2k
Halfop
Posts: 57
Joined: Mon Sep 11, 2006 7:27 am
Location: UK

Post by hm2k »

It has nothing to do with timezones vs "real time" as they are the same thing.

Unfortunately, there appears to be an issue with the script...
[11:59:23 am] > .tz London
[11:59:24 am] <Bot> HM2K, The time for the Europe/London timezone is Mon Feb 01 12:58:03 2010
It appears the script returns the time one hour ahead.

The problem stems from [clock seconds].

If [clock seconds] is too fast, your system clock may be wrong.

Code: Select all

[root@blade ~]# ntpdate uk.pool.ntp.org
 1 Feb 12:13:03 ntpdate[20281]: step time server 82.219.4.31 offset -3642.419450 sec
That fixed it for me...
[12:17:10 pm] > .tz London
[12:17:11 pm] <Bot> HM2K, The time for the Europe/London timezone is Mon Feb 01 12:15:08 2010
T
Torrevado
Op
Posts: 101
Joined: Wed Aug 02, 2006 6:29 pm

Post by Torrevado »

hm2k, I have a question...

your solution would change server time? I'm not root, just have a shell account, so:
1 Feb 13:04:30 ntpdate[88094]: bind() fails: Permission denied
Obviously admins won't change server time to match my needs.

Thanks.
User avatar
hm2k
Halfop
Posts: 57
Joined: Mon Sep 11, 2006 7:27 am
Location: UK

Post by hm2k »

You need to be root to issue that command. Speak to your system administrators.

There's no two ways about it, their system clock is incorrect and it is in their best interest to fix it.

However, I am working on updating the script to use the ntp protocol rather than the system time, but it's not working yet and is less reliable.
User avatar
hm2k
Halfop
Posts: 57
Joined: Mon Sep 11, 2006 7:27 am
Location: UK

Post by hm2k »

I've now added the "time" protocol to the script.

Download it here: http://hm2k.googlecode.com/svn/trunk/co ... ldtime.tcl

Although I still recommend you fix your system time.

Update: I've now replaced the TIME protocol method with the HTTP time protocol method. This gives you way better support.

Update2: As per Torrevado's request I have now added a time offset, so you can easily offset the time to suit you.
Last edited by hm2k on Tue Feb 02, 2010 8:40 am, edited 1 time in total.
K
Koo
Voice
Posts: 37
Joined: Fri Apr 02, 2010 7:43 pm

Re: speechles' worldtime

Post by Koo »

Torrevado wrote:speechles, worldtime is not working for me...
Tcl error [pub_world_time]: can't read "tzzone": no such variable
Same here. :(
User avatar
hm2k
Halfop
Posts: 57
Joined: Mon Sep 11, 2006 7:27 am
Location: UK

Re: speechles' worldtime

Post by hm2k »

Koo wrote:
Torrevado wrote:speechles, worldtime is not working for me...
Tcl error [pub_world_time]: can't read "tzzone": no such variable
Same here. :(
Try this instead: http://www.hm2k.com/posts/weather-tcl
K
Koo
Voice
Posts: 37
Joined: Fri Apr 02, 2010 7:43 pm

Re: speechles' worldtime

Post by Koo »

hm2k wrote:Try this instead: http://www.hm2k.com/posts/weather-tcl
Thank you for the script hm2k but I already have the weather script. :) I was looking for a timezone script like this:

Code: Select all

<Me>!tz New York
<Bot> The current time for New York, United States is (time) @ (timezone) (date)
User avatar
hm2k
Halfop
Posts: 57
Joined: Mon Sep 11, 2006 7:27 am
Location: UK

Re: speechles' worldtime

Post by hm2k »

Koo wrote:
hm2k wrote:Try this instead: http://www.hm2k.com/posts/weather-tcl
Thank you for the script hm2k but I already have the weather script. :) I was looking for a timezone script like this:

Code: Select all

<Me>!tz New York
<Bot> The current time for New York, United States is (time) @ (timezone) (date)
Woops, my mistake, I mean this page:

http://www.hm2k.com/posts/worldtime-tcl :)
Post Reply