<?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/3269" />

	<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>2002-12-19T11:07:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-12-19T11:07:48-04:00</updated>

		<published>2002-12-19T11:07:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14428#p14428</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14428#p14428"/>
		<title type="html"><![CDATA[Format of date]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14428#p14428"><![CDATA[
Ok, test it with<div class="codebox"><p>Code: </p><pre><code>proc pub:test {nick host hand chan arg} {set tomorrow [clock scan "tomorrow"]set dayaftertomorrow [expr $tomorrow + (24 * 60 * 60)]putserv "PRIVMSG $chan : Tomorrow: [clock format $tomorrow -format "%b %d"] "putserv "PRIVMSG $chan : The day after: [clock format $dayaftertomorrow -format "%b %d"] "}</code></pre></div>...and it works  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Thu Dec 19, 2002 11:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2002-12-18T23:23:00-04:00</updated>

		<published>2002-12-18T23:23:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14411#p14411</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14411#p14411"/>
		<title type="html"><![CDATA[Re: Format of date]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14411#p14411"><![CDATA[
<blockquote class="uncited"><div>Hi,<br><br>today is eg 12/19/2002 then the following line<div class="codebox"><p>Code: </p><pre><code>clock format [clock seconds] -format "%b %d"</code></pre></div>will post <strong class="text-strong">Dec 19</strong><br><br>so far so good....<br><br>But how must the line looks like to get the date from tormorrow (Dec 20) and the day after (Dec 21)?<br><br>Thanks<br>jagg</div></blockquote>Well if [clock seconds] is today, and knowing that [clock seconds] returns the time in unix format (that being the number of seconds since a certain date), then logically it would follow you would want [clock seconds] + (24 * 60 * 60) [where 24 is hours in a day, 60 is minutes in an hour, and 2nd 60 is the seconds in a minute -&gt; which gives the number of seconds in a day].. <br><br>So to find the date x amount of days after today you would use the formula... [clock seconds] + ($x * 24 * 60 * 60) ...<br><br>It's just simple math.<br><br><br>I've given you the pseudo code, I'll let you figure out the actual code, which isn't much to change.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Wed Dec 18, 2002 11:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-12-18T22:24:47-04:00</updated>

		<published>2002-12-18T22:24:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14409#p14409</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14409#p14409"/>
		<title type="html"><![CDATA[Format of date]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14409#p14409"><![CDATA[
Hi,<br><br>today is eg 12/19/2002 then the following line<div class="codebox"><p>Code: </p><pre><code>clock format [clock seconds] -format "%b %d"</code></pre></div>will post <strong class="text-strong">Dec 19</strong><br><br>so far so good....<br><br>But how must the line looks like to get the date from tormorrow (Dec 20) and the day after (Dec 21)?<br><br>Thanks<br>jagg<p>Statistics: Posted by Guest — Wed Dec 18, 2002 10:24 pm</p><hr />
]]></content>
	</entry>
	</feed>
