<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/5499" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-09-05T08:30:22-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/5499</id>

		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-09-05T08:30:22-04:00</updated>

		<published>2003-09-05T08:30:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26549#p26549</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26549#p26549"/>
		<title type="html"><![CDATA[Displaying the time...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26549#p26549"><![CDATA[
you're welcome<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Fri Sep 05, 2003 8:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-09-05T07:02:21-04:00</updated>

		<published>2003-09-05T07:02:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26539#p26539</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26539#p26539"/>
		<title type="html"><![CDATA[Displaying the time...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26539#p26539"><![CDATA[
works a treat - thanks very much!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Fri Sep 05, 2003 7:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-09-05T06:17:56-04:00</updated>

		<published>2003-09-05T06:17:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26537#p26537</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26537#p26537"/>
		<title type="html"><![CDATA[Displaying the time...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26537#p26537"><![CDATA[
cool - thanks for that. will report back when the clock strikes the next hour!<br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Fri Sep 05, 2003 6:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-09-05T06:19:22-04:00</updated>

		<published>2003-09-05T06:14:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26536#p26536</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26536#p26536"/>
		<title type="html"><![CDATA[Displaying the time...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26536#p26536"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind time - "00 * * * *" put:hour proc put:hour { min hour day month year } { putserv "PRIVMSG #NewsRoom :\0030,4» LIVE ([gettime -16] US Eastern and [gettime -13] GMT) \0030,12&gt; Breaking News &amp; Market Action 24/7 \0031,15&gt; http://www.247newsroom.com \00312,12 \003"}</code></pre></div> <br><br>you can strip the seconds by removing ":%S" from the gettime proc<br>and dont forget to load the gettime proc,best is if you add it to the same .tcl as your current script<br><br>btw : they way user thought about it :<div class="codebox"><p>Code: </p><pre><code>proc gettime { offset } {return [clock format [expr [clock seconds] + [expr $offset] * 60 * 60] -format "%H:%M:%S"]}</code></pre></div>then the date is correct too<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Fri Sep 05, 2003 6:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-09-05T06:05:29-04:00</updated>

		<published>2003-09-05T06:05:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26535#p26535</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26535#p26535"/>
		<title type="html"><![CDATA[Displaying the time...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26535#p26535"><![CDATA[
thanks GOS - so do I just insert [gettime -16] etc into my hourly msg line for it to display...sorry if that's a dumb question!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Fri Sep 05, 2003 6:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-09-05T06:01:30-04:00</updated>

		<published>2003-09-05T06:01:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26534#p26534</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26534#p26534"/>
		<title type="html"><![CDATA[Displaying the time...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26534#p26534"><![CDATA[
or just add/subtract the number of seconds from [clock seconds] before formatting it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Sep 05, 2003 6:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2003-09-05T05:59:17-04:00</updated>

		<published>2003-09-05T05:59:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26533#p26533</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26533#p26533"/>
		<title type="html"><![CDATA[Displaying the time...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26533#p26533"><![CDATA[
this code should help you out..<br><div class="codebox"><p>Code: </p><pre><code>proc gettime { offset } {set hour [clock format [clock seconds] -format "%H"]set therest [clock format [clock seconds] -format "%M:%S"]set time_ret [expr $hour + $offset]if {[expr $time_ret &gt; 23]} { set time_ret [expr $time_ret - 24] }if {[expr $time_ret &lt; 0]} { set time_ret [expr $time_ret + 24] }return $time_ret:$therest}</code></pre></div>you can use this with [gettime -16] for US Estern and with [gettime -12] for gmt<br><br>i know this can be done in a lower number of lines, but this way its easy to understand for everybody<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Fri Sep 05, 2003 5:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-09-05T05:20:29-04:00</updated>

		<published>2003-09-05T05:20:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=26531#p26531</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=26531#p26531"/>
		<title type="html"><![CDATA[Displaying the time...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=26531#p26531"><![CDATA[
Hi - I have this script that plays to the channel at the top of every hour:<br><br>bind time - "00 * * * *" put:hour<br>proc put:hour { min hour day month year } {<br>putserv "PRIVMSG #NewsRoom :\0030,4» LIVE \0030,12&gt; Breaking News &amp; Market Action 24/7 \0031,15&gt; <a href="http://www.247newsroom.com" class="postlink">http://www.247newsroom.com</a> \00312,12 \003"}<br><br>I'd like to add to the message (after the 'LIVE') the current US Eastern time (16 hours behind my local time) and GMT time (12 hours behind my local time).<br><br>If anyone could help me with the asctime and calc commands that would be great! Thanks =)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Fri Sep 05, 2003 5:20 am</p><hr />
]]></content>
	</entry>
	</feed>
