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

	<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-03-25T19:32:25-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2011-03-25T19:32:25-04:00</updated>

		<published>2011-03-25T19:32:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96551#p96551</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96551#p96551"/>
		<title type="html"><![CDATA[Re: timestamp generation]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96551#p96551"><![CDATA[
<blockquote class="uncited"><div>Hello everyone,<br><br>I'm wondering if there is any function i can use to generate a timestamp in tcl script? </div></blockquote><a href="http://www.eggheads.org/support/egghtml/1.6.20/tcl-commands.html" class="postlink">http://www.eggheads.org/support/egghtml ... mands.html</a><br>and check out:<br>strftime<br><br>This will be handy for reference too:<br><a href="http://linux.about.com/library/cmd/blcmdl3_strftime.htm" class="postlink">http://linux.about.com/library/cmd/blcmdl3_strftime.htm</a><br><br>You can get the date and/or time in just about any format you want, with strftime.<br><blockquote class="uncited"><div><br>And if there is any other function to generate a random number in a given range?<br></div></blockquote>Same place -   tcl-commands.doc  -    and check out:<br>rand<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Fri Mar 25, 2011 7:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doggo]]></name></author>
		<updated>2011-03-25T16:47:56-04:00</updated>

		<published>2011-03-25T16:47:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96550#p96550</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96550#p96550"/>
		<title type="html"><![CDATA[timestamp generation]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96550#p96550"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set random [expr { int(100 * rand()) }]</code></pre></div>for the random number between 0-100<br><div class="codebox"><p>Code: </p><pre><code>set timestamp [clock seconds]</code></pre></div>for the time-stamp..<br><br>you can then use the VARS $random $timestamp in yr script <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br><br>hope this helps..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11046">doggo</a> — Fri Mar 25, 2011 4:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kennycheung21]]></name></author>
		<updated>2011-03-25T12:46:50-04:00</updated>

		<published>2011-03-25T12:46:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96549#p96549</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96549#p96549"/>
		<title type="html"><![CDATA[timestamp generation]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96549#p96549"><![CDATA[
Hello everyone,<br><br>I'm wondering if there is any function i can use to generate a timestamp in tcl script? <br>And if there is any other function to generate a random number in a given range?<br><br>Please help and thank you!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11583">kennycheung21</a> — Fri Mar 25, 2011 12:46 pm</p><hr />
]]></content>
	</entry>
	</feed>
