worldtime1.1.tcl by Murf has ceased to function on my bot. I saw a comment from another user on the authors site (now seems to be closed) attributing the problem to changes in the website used by the script.
Take a peek here and you get the gist of the difficulties in trying to create a database especially if new to TCL; the fact that parts of the world switch in and out of DST (Daylight Savings Time) at certain times of the year also has to be taken into account. It's easier to access a website.
Add [SOLVED] to the thread title if your issue has been. Search | FAQ | RTM
Heh, actually mine stopped working as well just a few days ago. People were complaining in the channel why did it stop. I really have no idea, because I didn't change or modify the code and its been the same one since I ever loaded it.
My guess is, the get url might have changed for the website. True we can make a tcl for time via timezones, by calculating the bots current location and using expr with the timezone and gmt, est whatever formats to calculate the current time. But this would be a very longer process I guess. There are like 150-200 known countries and if we some up all these countries and their major cities, then we have a major problemo. Adding each city individually is not what I would recommend (500+ cities), elseif { #someone is paying you for it;}.
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee) PS: Guys, I don't accept script helps or requests personally anymore.
==================================
# Greenwich Mean Time / Coordinated Universal Time (UTC)
set UTC "[clock format [clock seconds] -format %H -gmt 1]"
# British Summer Time (BST)
set BST "[time:calc [expr $UTC + 1]]"
# Central European Time (CET)
set CET "[time:calc [expr $UTC + 1]]"
# Central European Summer Time (CEST)
set CEST "[time:calc [expr $UTC + 2]]"
# Pacific Standard Time (PST)
set PST "[time:calc [expr $UTC - 8]]"
# Pacific Daylight Time (PDT)
set PDT "[time:calc [expr $UTC - 7]]"
# Eastern Standard Time
set EST "[time:calc [expr $UTC - 5]]"
# Eastern Daylight Time (EDT)
set EDT "[time:calc [expr $UTC - 4]]"
Only thing i can't find is the time:calc proc which i seem to have misplaced