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

	<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>2002-04-03T18:09:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2002-04-03T18:09:00-04:00</updated>

		<published>2002-04-03T18:09:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5946#p5946</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5946#p5946"/>
		<title type="html"><![CDATA[how to convert sting to int.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5946#p5946"><![CDATA[
well that looks ok to me (except that 101122334455 is a larger than 32 bit number, and since clock format is a 32 bit function it will fail).<br><br>you sure you're specifing the arguments to clock format corectly?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Wed Apr 03, 2002 6:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-04-03T16:07:00-04:00</updated>

		<published>2002-04-03T16:07:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5941#p5941</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5941#p5941"/>
		<title type="html"><![CDATA[how to convert sting to int.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5941#p5941"><![CDATA[
it's not in a list and it's only numbers<br><br>the timestamp in the log file looks like this:<br>&lt;10numbersfordate&gt;, &lt;restoflogline&gt;<br>example&gt;<br>101122334455, &lt;Rest&gt;<br><br>to 'catch' the time i use this:<br>set _time [lindex [split $line ","] 0]<br><p>Statistics: Posted by Guest — Wed Apr 03, 2002 4:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Petersen]]></name></author>
		<updated>2002-04-03T15:39:00-04:00</updated>

		<published>2002-04-03T15:39:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5939#p5939</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5939#p5939"/>
		<title type="html"><![CDATA[how to convert sting to int.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5939#p5939"><![CDATA[
technically there is no int in tcl. what its requesting is that whatever string you're passing to it consists only of the characters 0-9. I suspect that you may have some leading/trailing spaces in whatever string you're passing to it, or possibly its in a list format (in which case you may have some {} in it).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=60">Petersen</a> — Wed Apr 03, 2002 3:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-04-03T14:12:00-04:00</updated>

		<published>2002-04-03T14:12:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5935#p5935</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5935#p5935"/>
		<title type="html"><![CDATA[how to convert sting to int.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5935#p5935"><![CDATA[
Hi.<br><br>I'm making a script that checks some thing in a log file and compare it with $arg.<br>The comparing **** is working perfectly, only each line in the log is timestamped in 'unix' time (only a row of numbers, like 1017854413). I want to convert that time to DD/MM/YY and hh:mm:ss. I know hot to do it (clock format .....), but when i use this function, it says that it expects an int, not a sting, so i need to convert this piece of the string (it's split already in f_time) to an int value, but afaik there is no function for it (like string toint or somehint like that).<br>And i'm not fealing like writing a function like:<br>switch $&lt;vartoconverttostring&gt; {<br>  "0" : { return 0 }<br>  "1" : { return 1} <br>  and so on.<br>}<br><br>Can someone help me plz, or perhaps ther already IS a function for this...<br><br>Greejtz, Zygo.<p>Statistics: Posted by Guest — Wed Apr 03, 2002 2:12 pm</p><hr />
]]></content>
	</entry>
	</feed>
