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

	<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>2003-02-11T03:13:45-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-02-11T03:13:45-04:00</updated>

		<published>2003-02-11T03:13:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16419#p16419</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16419#p16419"/>
		<title type="html"><![CDATA[time difference]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16419#p16419"><![CDATA[
[duration [expr [clock scan $date] - [clock scan $expire]]] did the trick. :]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Feb 11, 2003 3:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-02-11T02:32:32-04:00</updated>

		<published>2003-02-11T02:32:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16418#p16418</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16418#p16418"/>
		<title type="html"><![CDATA[time difference]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16418#p16418"><![CDATA[
Actualy I've tryed 'duration' also, but stucked in something and didn't continued. Was tyred last night and didn't consulted the manual. I'll read about it now. Thanks for the tip.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Feb 11, 2003 2:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-02-10T17:05:42-04:00</updated>

		<published>2003-02-10T17:05:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16405#p16405</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16405#p16405"/>
		<title type="html"><![CDATA[time difference]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16405#p16405"><![CDATA[
<blockquote class="uncited"><div>I've found something: set result [clock format [expr [clock scan $date] - [clock scan $expire]] -format {%m %d}]<br><br>but I'm getting the result like this: 01 15 (months, days) so, in fact the difference betwen them is 15 days.. not 1 month and 15 days. Any sugestions?</div></blockquote>The clock format does not tell it is 1 month *and* 15 days. It tells you that the number you asked to be formatted is January 15.<br><br>By subtracting the two numbers you get the number of seconds since the unix clock started: 1209600 seconds in your case.<br><br>The number you feed into [clock format] is the number of seconds since 01/01/1970 00:00 GMT.<br><br>Which in your case is 15 days into the first month since "01/01/1970 00:00 GMT". So, what you are seeing is 15/01/1970 00:00 GMT.<br><br>What you can use is [duration] which takes a relative number.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Mon Feb 10, 2003 5:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-02-10T16:54:30-04:00</updated>

		<published>2003-02-10T16:54:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16403#p16403</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16403#p16403"/>
		<title type="html"><![CDATA[time difference]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16403#p16403"><![CDATA[
I've found something: set result [clock format [expr [clock scan $date] - [clock scan $expire]] -format {%m %d}]<br><br>but I'm getting the result like this: 01 15 (months, days) so, in fact the difference betwen them is 15 days.. not 1 month and 15 days. Any sugestions?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Feb 10, 2003 4:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-02-10T16:28:36-04:00</updated>

		<published>2003-02-10T16:28:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16402#p16402</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16402#p16402"/>
		<title type="html"><![CDATA[time difference]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16402#p16402"><![CDATA[
The current date is: 02/10/03 and the *old* one is: 01/27/03.<br><br>I use the date like this: [clock format [clock seconds] -format %D] and the old time *results* exactly like date (eg. 01/27/03).<br><br>Is there a easier way I can to a *time difference* betwen this two? Tryed to 'split' them and then do some 'expr' on each item (month, day and year).. but is hard and verry confusing this way.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Feb 10, 2003 4:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
