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

	<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>2006-05-17T21:37:27-04:00</updated>

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

		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2006-05-17T21:37:27-04:00</updated>

		<published>2006-05-17T21:37:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63139#p63139</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63139#p63139"/>
		<title type="html"><![CDATA[Eggdrop BUG in bind time?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63139#p63139"><![CDATA[
<blockquote class="uncited"><div>::bump::<br><br>Maybe this should be noted in the tcl-command.doc, cos that file says digits are "exactly two-characterss long"  :/</div></blockquote>Eggdrop docs assume the user has the basic knowledge of unix-like operating systems to know that the first number in any count is 0.<br>With this knowledge, and the statement that digits require two characters, January is month 00.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Wed May 17, 2006 9:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-05-17T18:42:44-04:00</updated>

		<published>2006-05-17T18:42:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63132#p63132</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63132#p63132"/>
		<title type="html"><![CDATA[Eggdrop BUG in bind time?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63132#p63132"><![CDATA[
<blockquote class="uncited"><div>this is not a bug<br><br>eggdrop gets the time via standard library time functions, which utilize <strong class="text-strong">struct tm</strong>; that struct has the following members:<div class="codebox"><p>Code: </p><pre><code>           int tm_sec;     /* seconds (0 - 60) */           int tm_min;     /* minutes (0 - 59) */           int tm_hour;    /* hours (0 - 23) */           int tm_mday;    /* day of month (1 - 31) */           int tm_mon;     /* month of year (0 - 11) */           int tm_year;    /* year - 1900 */           int tm_wday;    /* day of week (Sunday = 0) */           int tm_yday;    /* day of year (0 - 365) */           int tm_isdst;   /* is summer time in effect? */           char *tm_zone;  /* abbreviation of timezone name */           long tm_gmtoff; /* offset from UTC in seconds */</code></pre></div>as you can see, months are zero-base indexed</div></blockquote>::bump::<br><br>Maybe this should be noted in the tcl-command.doc, cos that file says digits are "exactly two-characterss long"  :/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Wed May 17, 2006 6:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cerberus_gr]]></name></author>
		<updated>2005-03-19T01:49:55-04:00</updated>

		<published>2005-03-19T01:49:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47918#p47918</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47918#p47918"/>
		<title type="html"><![CDATA[Eggdrop BUG in bind time?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47918#p47918"><![CDATA[
Hmmm, I didn't know that!!!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> <br><br>So, if if I want to get the "real" number of month i have to [expr {$month + 1}].<br><br>Thx <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=2661">cerberus_gr</a> — Sat Mar 19, 2005 1:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-03-19T01:46:26-04:00</updated>

		<published>2005-03-19T01:46:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47917#p47917</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47917#p47917"/>
		<title type="html"><![CDATA[Eggdrop BUG in bind time?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47917#p47917"><![CDATA[
this is not a bug<br><br>eggdrop gets the time via standard library time functions, which utilize <strong class="text-strong">struct tm</strong>; that struct has the following members:<div class="codebox"><p>Code: </p><pre><code>           int tm_sec;     /* seconds (0 - 60) */           int tm_min;     /* minutes (0 - 59) */           int tm_hour;    /* hours (0 - 23) */           int tm_mday;    /* day of month (1 - 31) */           int tm_mon;     /* month of year (0 - 11) */           int tm_year;    /* year - 1900 */           int tm_wday;    /* day of week (Sunday = 0) */           int tm_yday;    /* day of year (0 - 365) */           int tm_isdst;   /* is summer time in effect? */           char *tm_zone;  /* abbreviation of timezone name */           long tm_gmtoff; /* offset from UTC in seconds */</code></pre></div>as you can see, months are zero-base indexed<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sat Mar 19, 2005 1:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cerberus_gr]]></name></author>
		<updated>2005-03-19T01:16:33-04:00</updated>

		<published>2005-03-19T01:16:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=47916#p47916</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=47916#p47916"/>
		<title type="html"><![CDATA[Eggdrop BUG in bind time?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=47916#p47916"><![CDATA[
Just look the following code and correct me if I'm wrong.<br><br>_geo_ is me and CerberuS is my eggdrop (1.6.17)<br><br><div class="codebox"><p>Code: </p><pre><code>[07:09:44] &lt;_geo_&gt; .tcl proc chktime { min hour day month year } { putlog "$min - $hour - $day - $month - $year" }[07:09:44] &lt;CerberuS&gt; Tcl: [07:12:02] &lt;_geo_&gt; .tcl putlog [clock format [clock seconds] -format "%c"][07:12:02] &lt;CerberuS&gt; [07:11:29] Sat 19 Mar 2005 07:11:29 AM EET [07:12:03] &lt;CerberuS&gt; Tcl: [07:12:26] &lt;_geo_&gt; .tcl bind time - "12 07 * * *" chktime [07:12:26] &lt;CerberuS&gt; Tcl: 12 07 * * *[07:12:33] &lt;CerberuS&gt; [07:12:00] 12 - 07 - 19 - 02 - 2005</code></pre></div><br>Also date command for my shell is:<br><div class="codebox"><p>Code: </p><pre><code>-bash-2.05b$ dateSat Mar 19 07:16:13 EET 2005</code></pre></div><br>As you can see the month is March, which is 3rd, but when the time bind calls the chktime procedure the month which returns is 02.<br>Why this happens?<br><br>Thx <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=2661">cerberus_gr</a> — Sat Mar 19, 2005 1:16 am</p><hr />
]]></content>
	</entry>
	</feed>
