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

	<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-02-08T22:42:02-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Taiyaki]]></name></author>
		<updated>2003-02-08T22:42:02-04:00</updated>

		<published>2003-02-08T22:42:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16337#p16337</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16337#p16337"/>
		<title type="html"><![CDATA[need help: how to do arithmatic operations on strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16337#p16337"><![CDATA[
n/m I realized what you tried to say when I reviewed the TCL manual pages, lol.<br><br>Thanks a lot for your help egghead!!!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2212">Taiyaki</a> — Sat Feb 08, 2003 10:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Taiyaki]]></name></author>
		<updated>2003-02-08T16:39:02-04:00</updated>

		<published>2003-02-08T16:39:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16327#p16327</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16327#p16327"/>
		<title type="html"><![CDATA[Re: need help: how to do arithmatic operations on strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16327#p16327"><![CDATA[
<blockquote class="uncited"><div>Maybe  it is better to add 24*60*60 ticks to the [clock seconds] and then do the [clock format]?</div></blockquote>sorry but I'm a newbie  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"> I think what you're trying to say is add 24 hours to my clock before doing the format?  That sounds like a great idea, but can you give me the code to do that  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"> <br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2212">Taiyaki</a> — Sat Feb 08, 2003 4:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-02-08T16:36:40-04:00</updated>

		<published>2003-02-08T16:36:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16325#p16325</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16325#p16325"/>
		<title type="html"><![CDATA[Re: need help: how to do arithmatic operations on strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16325#p16325"><![CDATA[
<blockquote class="uncited"><div>in my script i use the clock function to get me the current date, but I want to add 1 to the date (say it's the 8th today, and I want tomorrow's date, so I add 1 to 8 to make it 9)<br><div class="codebox"><p>Code: </p><pre><code>set cdate1 [clock format [clock seconds] -format "%m %d %y"]append esttime [lindex $cdate1 0]append esttime "/"append esttime [expr [lindex $cdate1 1] + 1]append esttime "/"append esttime [lindex $cdate1 2]</code></pre></div>the expected output would be 02/09/03<br>the line that's giving me trouble is<br><div class="codebox"><p>Code: </p><pre><code>append esttime [expr [lindex $cdate1 1] + 1]</code></pre></div>it keeps saying that it's not an octal number or something.  Can someone please help?  Thanks</div></blockquote>Maybe  it is better to add 24*60*60 ticks to the [clock seconds] and then do the [clock format]?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Sat Feb 08, 2003 4:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Taiyaki]]></name></author>
		<updated>2003-02-08T16:22:30-04:00</updated>

		<published>2003-02-08T16:22:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16324#p16324</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16324#p16324"/>
		<title type="html"><![CDATA[need help: how to do arithmatic operations on strings]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16324#p16324"><![CDATA[
in my script i use the clock function to get me the current date, but I want to add 1 to the date (say it's the 8th today, and I want tomorrow's date, so I add 1 to 8 to make it 9)<br><div class="codebox"><p>Code: </p><pre><code>set cdate1 [clock format [clock seconds] -format "%m %d %y"]append esttime [lindex $cdate1 0]append esttime "/"append esttime [expr [lindex $cdate1 1] + 1]append esttime "/"append esttime [lindex $cdate1 2]</code></pre></div>the expected output would be 02/09/03<br>the line that's giving me trouble is<br><div class="codebox"><p>Code: </p><pre><code>append esttime [expr [lindex $cdate1 1] + 1]</code></pre></div>it keeps saying that it's not an octal number or something.  Can someone please help?  Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2212">Taiyaki</a> — Sat Feb 08, 2003 4:22 pm</p><hr />
]]></content>
	</entry>
	</feed>
