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

	<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>2004-05-29T14:42:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-05-29T14:42:45-04:00</updated>

		<published>2004-05-29T14:42:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36730#p36730</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36730#p36730"/>
		<title type="html"><![CDATA[Checking if time is between x and y]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36730#p36730"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>#first get the time from the file and set it to a variable#then make sure it is in unixformat (like it is returned from the clock scan command# this is just an exampleset time [clock scan "19:20"]#do the check..if {$time &lt; $1hour_after &amp;&amp; $time &gt; $1hour_before} {   #it is between the vars... do something here}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Sat May 29, 2004 2:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SomeGuy]]></name></author>
		<updated>2004-05-29T12:23:43-04:00</updated>

		<published>2004-05-29T12:23:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36725#p36725</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36725#p36725"/>
		<title type="html"><![CDATA[Checking if time is between x and y]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36725#p36725"><![CDATA[
Ok, my script looks like this:<br><div class="codebox"><p>Code: </p><pre><code>set start_stamp [clock scan "$hour:$min"] set 1hour_before [expr {$start_stamp - (60 * 60)}] set 1hour_before_format [clock format $1hour_before -format "%H:%M"] set 1hour_after [expr {$start_stamp + (60 * 60)}] set 1hour_after_format [clock format $1hour_after -format "%H:%M"] </code></pre></div>Now how do I check if the time (thats in database file) is between $1hour_before_format and $1hour_after_format and only on the current day?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4901">SomeGuy</a> — Sat May 29, 2004 12:23 pm</p><hr />
]]></content>
	</entry>
	</feed>
