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

	<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>2009-03-14T13:47:21-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-03-14T13:47:21-04:00</updated>

		<published>2009-03-14T13:47:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87852#p87852</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87852#p87852"/>
		<title type="html"><![CDATA[bind time not working properly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87852#p87852"><![CDATA[
Rather this:<br>expr {[string trimleft $month "0"] + 1}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sat Mar 14, 2009 1:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fill]]></name></author>
		<updated>2009-03-14T10:21:53-04:00</updated>

		<published>2009-03-14T10:21:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87846#p87846</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87846#p87846"/>
		<title type="html"><![CDATA[bind time not working properly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87846#p87846"><![CDATA[
so how would it stay?<br><br>expr [[string trimleft $month "0"] +1] ??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10430">Fill</a> — Sat Mar 14, 2009 10:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2009-03-13T21:34:49-04:00</updated>

		<published>2009-03-13T21:34:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87840#p87840</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87840#p87840"/>
		<title type="html"><![CDATA[bind time not working properly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87840#p87840"><![CDATA[
Don't forget the 0-padding, making tcl think we're dealing with octals rather than integers. Simply using expr {$month + 1} won't work well, especially in  September and October.<br><br>Something like this should take care of that though:<div class="codebox"><p>Code: </p><pre><code>string trimleft $month "0"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Mar 13, 2009 9:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2009-03-13T19:56:12-04:00</updated>

		<published>2009-03-13T19:56:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87836#p87836</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87836#p87836"/>
		<title type="html"><![CDATA[bind time not working properly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87836#p87836"><![CDATA[
Like in Java, the first month is 00 and not 01. So all you need to do is to add 1 to the $month variable.<div class="codebox"><p>Code: </p><pre><code>bind time - "00 04 * * *" prepareftpproc prepareftp { minutes hour day month year } { global lf ht us ps rf sendftp $lf $ht $us $ps $rf puthelp "PRIVMSG #cyber-world \001ACTION It is now: \002$hour:$minutes AM\002. Uploading '$lf' \002««« $day/[expr {$month + 1}]/$year »»»\002"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Mar 13, 2009 7:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fill]]></name></author>
		<updated>2009-03-13T16:14:54-04:00</updated>

		<published>2009-03-13T16:14:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87830#p87830</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87830#p87830"/>
		<title type="html"><![CDATA[bind time not working properly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87830#p87830"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind time - "00 04 * * *" prepareftpproc prepareftp { minutes hour day month year } {global lf ht us ps rfsendftp $lf $ht $us $ps $rfputhelp "PRIVMSG #cyber-world \001ACTION It is now: \002$hour:$minutes AM\002. Uploading '$lf' \002««« $day/$month/$year »»»\002"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10430">Fill</a> — Fri Mar 13, 2009 4:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2009-03-13T09:28:37-04:00</updated>

		<published>2009-03-13T09:28:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87825#p87825</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87825#p87825"/>
		<title type="html"><![CDATA[bind time not working properly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87825#p87825"><![CDATA[
Show us the code so we can see how the date-string is being generated. Also, make sure the date is correctly set on the system where your Eggdrop is operating.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Mar 13, 2009 9:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fill]]></name></author>
		<updated>2009-03-13T09:11:52-04:00</updated>

		<published>2009-03-13T09:11:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=87822#p87822</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=87822#p87822"/>
		<title type="html"><![CDATA[bind time not working properly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=87822#p87822"><![CDATA[
Hi, I have a script that uses bind time events.<br><br>It does something like this:<br><blockquote class="uncited"><div>[Fri-04:00:11am] * @RoBotX It is now: 04:00 AM. Uploading '/home/filipe/eggdrop/Triggers/triggerlog.txt' ««« 13/02/2009 »»»</div></blockquote>See that? Everything is alright, but he says <strong class="text-strong">««« 13/02/2009 »»»</strong>, it should be 13/<strong class="text-strong">03</strong>/2009<br><br>What the hell is going on with months?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10430">Fill</a> — Fri Mar 13, 2009 9:11 am</p><hr />
]]></content>
	</entry>
	</feed>
