<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Time Elapsed</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/time-elapsed/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/time-elapsed/</link>
	<description></description>
	<pubDate>Sat, 26 May 2012 14:45:19 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: A1maida</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/time-elapsed/#comment-101736</link>
		<dc:creator>A1maida</dc:creator>
		<pubDate>Tue, 17 Jan 2012 12:15:50 +0000</pubDate>
		<guid isPermaLink="false">#comment-101736</guid>
		<description>Thanks for your help.</description>
		<content:encoded><![CDATA[<p>Thanks for your help.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BigKat</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/time-elapsed/#comment-101573</link>
		<dc:creator>BigKat</dc:creator>
		<pubDate>Thu, 12 Jan 2012 19:45:55 +0000</pubDate>
		<guid isPermaLink="false">#comment-101573</guid>
		<description>Actually, %DIFF returns an integer of the number of FULL units between the 2 values

so you will only see 1.00 in your total hour field what you want is to retrieve the minutes divided by 60;
[CODE]
d total_hours     s              9p 2                 
d time1           s               t   inz(T'12.00.00')
d time2           s               t   inz(T'13.38.00')
                                                      
 /free                                                
[B]     total_hours = %diff(time2 : time1 : *mn)/60;     [/B]
     dump(a);                                         
     *inlr = *on;                                     
 /end-free                                            
[/CODE]</description>
		<content:encoded><![CDATA[<p>Actually, %DIFF returns an integer of the number of FULL units between the 2 values</p>
<p>so you will only see 1.00 in your total hour field what you want is to retrieve the minutes divided by 60;</p>
<pre>
d total_hours     s              9p 2
d time1           s               t   inz(T&#8217;12.00.00&#8242;)
d time2           s               t   inz(T&#8217;13.38.00&#8242;)

 /free
<b>     total_hours = %diff(time2 : time1 : *mn)/60;     </b>
     dump(a);
     *inlr = *on;
 /end-free
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philpl1jb</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/time-elapsed/#comment-101572</link>
		<dc:creator>Philpl1jb</dc:creator>
		<pubDate>Thu, 12 Jan 2012 19:41:19 +0000</pubDate>
		<guid isPermaLink="false">#comment-101572</guid>
		<description>%diff(time2 : time1 : *h);     *h -- number of hours -- 1 hour

%diff(time2 : time1 : *minutes);   number of minutes
returns not  1.38  but 60 + 38 = 98

Hope this helps 
Phil</description>
		<content:encoded><![CDATA[<p>%diff(time2 : time1 : *h);     *h &#8212; number of hours &#8212; 1 hour</p>
<p>%diff(time2 : time1 : *minutes);   number of minutes<br />
returns not  1.38  but 60 + 38 = 98</p>
<p>Hope this helps<br />
Phil</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- dynamic -->
