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

	<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>2011-09-05T16:22:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-09-05T16:22:39-04:00</updated>

		<published>2011-09-05T16:22:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97649#p97649</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97649#p97649"/>
		<title type="html"><![CDATA[Wrong time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97649#p97649"><![CDATA[
<strong class="text-strong">clock format</strong> does show the correct formatting for the given timestamp(s). I do notice that you are mixing <strong class="text-strong">unixtime</strong> and <strong class="text-strong">clock seconds</strong> as the source for the "unixtime", which would suggest that these are returning different values at any specific point in time.<br><br>The <strong class="text-strong">unixtime</strong> command relies on the <a href="http://linux.die.net/man/2/time" class="postlink">time(2)</a> system call, while <strong class="text-strong">clock seconds</strong> uses the <a href="http://linux.die.net/man/2/gettimeofday" class="postlink">gettimeofday(2)</a> system call. Both of these should return the value of the system clock, thus I have no further ideas of the issue right now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Sep 05, 2011 4:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Slaktarn]]></name></author>
		<updated>2011-09-05T14:23:36-04:00</updated>

		<published>2011-09-05T14:23:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97647#p97647</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97647#p97647"/>
		<title type="html"><![CDATA[Wrong time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97647#p97647"><![CDATA[
As you can see the unixtime is correct and your test are correct, but of some reason the clock format shows totaly wrong time and now is the diff almost a minute<br><div class="codebox"><p>Code: </p><pre><code>PRIVMSG $channel :\002\[\002\00304TiME:\003 [clock format [clock seconds] -format {%a %b %d %H:%M:%S %Y %Z}]\002\]\002 \002\[\002\00304UNiXTiME:\003 [unixtime]\002\]\002[2011-09-05] [20:17:55]  »» [BOT] [TiME: Mon Sep 05 20:18:57 2011 +0200] [UNiXTiME: 1315246675]</code></pre></div><div class="codebox"><p>Code: </p><pre><code>PRIVMSG $channel :\002\[\002\00304TiME Test:\003 [clock format 1315119600]\002\]\002 \002\[\002\00304UNiXTiME:\003 [unixtime]\002\]\002[2011-09-05] [20:17:55]  »» [BOT] [TiME Test: Sun Sep 04 09:00:00 +0200 2011] [UNiXTiME: 1315246675]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8963">Slaktarn</a> — Mon Sep 05, 2011 2:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-09-04T16:01:06-04:00</updated>

		<published>2011-09-04T16:01:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97638#p97638</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97638#p97638"/>
		<title type="html"><![CDATA[Wrong time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97638#p97638"><![CDATA[
Then you've got the very first case I've ever seen where "clock format" calculates the value incorrectly.<br>Just for fun, though; Could you post the output of this:<div class="codebox"><p>Code: </p><pre><code>clock format 1315119600</code></pre></div>That should yield something like "sön sep 04 09.00.00 CEST 2011". If it does, that means clock format works just fine, and your clocks are off.<br><br>If we'd been talking of an hour (to the hour) difference, it'd be a timezone setting, but you won't get a 14 second diff.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Sep 04, 2011 4:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Slaktarn]]></name></author>
		<updated>2011-09-04T13:48:36-04:00</updated>

		<published>2011-09-04T13:48:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97637#p97637</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97637#p97637"/>
		<title type="html"><![CDATA[Wrong time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97637#p97637"><![CDATA[
<blockquote class="uncited"><div>You are talking about a 14 second discrepancy; are you sure that the systems you are comparing aren't simply out of sync?</div></blockquote>Yeh im sure as i say my unixtime is correct, and it checks the minutes to internet every 1min so its correct<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8963">Slaktarn</a> — Sun Sep 04, 2011 1:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-09-04T10:23:44-04:00</updated>

		<published>2011-09-04T10:23:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97634#p97634</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97634#p97634"/>
		<title type="html"><![CDATA[Wrong time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97634#p97634"><![CDATA[
You are talking about a 14 second discrepancy; are you sure that the systems you are comparing aren't simply out of sync?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Sep 04, 2011 10:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Slaktarn]]></name></author>
		<updated>2011-09-04T03:12:40-04:00</updated>

		<published>2011-09-04T03:12:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=97631#p97631</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=97631#p97631"/>
		<title type="html"><![CDATA[Wrong time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=97631#p97631"><![CDATA[
Hello all ppl i don´t get it, my eggdrop shows wrong time!<br><blockquote class="uncited"><div>I have<br><br>[clock format [clock seconds] -format {%a %b %d %H:%M:%S %Y %Z}]<br><br>Sun Sep 04 08:59:54 2011 +0200<br><br>Correct shuld be <br><br>Sun Sep 04 08:59:40 2011 +0200</div></blockquote><div class="codebox"><p>Code: </p><pre><code>The unixtime is correct 1315119580</code></pre></div><blockquote class="uncited"><div>And my settigs in the eggdrop is<br><br>set timezone "CET"<br>set offset "-1"<br>#set env(TZ) "$timezone $offset"</div></blockquote>Thx for the help Slaktarn<br><br>A little notice i don´t know if the timezone is correct i live in sweden, but what i read in the doc it shuld be the right one from what i understand<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8963">Slaktarn</a> — Sun Sep 04, 2011 3:12 am</p><hr />
]]></content>
	</entry>
	</feed>
