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

	<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>2004-05-25T21:17:02-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-05-25T21:17:02-04:00</updated>

		<published>2004-05-25T21:17:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36595#p36595</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36595#p36595"/>
		<title type="html"><![CDATA[Subtracting minutes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36595#p36595"><![CDATA[
the second * 60 was a brain fart... was thinking of hours to minutes to seconds...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Tue May 25, 2004 9:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SomeGuy]]></name></author>
		<updated>2004-05-25T21:02:06-04:00</updated>

		<published>2004-05-25T21:02:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36594#p36594</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36594#p36594"/>
		<title type="html"><![CDATA[Subtracting minutes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36594#p36594"><![CDATA[
Awesome man, thanks alot.<br><br>Just so you know, there were a couple errors in that code, but I fixed it and now everything is perfect.  It should look like this<br><div class="codebox"><p>Code: </p><pre><code>set start_stamp [clock scan "2:15"] set before_stamp [expr {$start_stamp - (30 * 60)}] set before_time [clock format $before_stamp -format "%H:%M"] </code></pre></div>Just minor errors, you were multiplying 60 twice, I don't know why cuz TCL works in seconds, so 30 mins times 60 secs per min.  30*60.<br><br>And you forgot the -format.  Minor as well.<br><br>Thanks for the help, really improved my script.  The way I was trying to do this before was horrible.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4901">SomeGuy</a> — Tue May 25, 2004 9:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-05-23T16:02:02-04:00</updated>

		<published>2004-05-23T16:02:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36553#p36553</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36553#p36553"/>
		<title type="html"><![CDATA[Subtracting minutes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36553#p36553"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set start_stamp [clock scan "2:15"]set before_stamp [expr {$start_stamp - (30 * 60 * 60)}]set before_time [clock format $before_stamp "%H:%M"]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sun May 23, 2004 4:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SomeGuy]]></name></author>
		<updated>2004-05-23T15:52:38-04:00</updated>

		<published>2004-05-23T15:52:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36552#p36552</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36552#p36552"/>
		<title type="html"><![CDATA[Subtracting minutes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36552#p36552"><![CDATA[
Basically right now I've got a script that a user sets a time/date and a description.<br><br>Now 2 hours before the time the bot messages the channel, i got that figured out.  As well I got 1 hour before and 1 hour after.<br><br>When I try to go and use minutes, the leading 0 causes the first problem, but lets say i have the time set at 2:15, and want to subtract 30 mins from that, how do i get the bot to stop at zero and then continue subtracting down the rest at 59?<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4901">SomeGuy</a> — Sun May 23, 2004 3:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
