date & time difference calculation

Joe Boyle joeboyle_adt@hotmail.com
Mon, 17 May 2004 17:35:11 +0100


<html><div style='background-color:'><DIV class=RTE>
<P>Hi Lorry,</P>
<P>what is the syntax that&nbsp;you are using to get the difference ?<BR><BR></P></DIV>
<DIV></DIV>&gt;From: Lorry Litman &lt;LLitman@exchange.hsc.mb.ca&gt; 
<DIV></DIV>&gt;To: "'Chris Sharman'" &lt;chris.sharman@ccagroup.co.uk&gt;,&nbsp;&nbsp; PowerH List&nbsp;&nbsp;&lt;powerh-l@lists.sowder.com&gt; 
<DIV></DIV>&gt;Subject: RE: date &amp; time difference calculation 
<DIV></DIV>&gt;Date: Mon, 17 May 2004 10:29:35 -0500 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Thank-you for your reply. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;I neglected to mention that I need to store the result in format YYMMDDHHMM. 
<DIV></DIV>&gt;In trying the code below I seem to be getting incorrect results. I'll have 
<DIV></DIV>&gt;to play with it a little more as I'm not that familiar with these functions. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;As an example, 
<DIV></DIV>&gt;&nbsp;&nbsp;difference between 21-jan-1999-10:15 and 20-jan-1999-14:00 results in 2735 
<DIV></DIV>&gt;(27 hrs, 35 min) when I expected a result of 2015 (20 hrs, 15 min), 
<DIV></DIV>&gt;&nbsp;&nbsp;difference between 10:15 and 10:00 comes up as 14 instead of 15. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;Thanx Lorry. 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;-----Original Message----- 
<DIV></DIV>&gt; 
<DIV></DIV>&gt;This e-mail and/or any documents in this transmission is intended for the address(s) only and may contain legally privileged or confidential information. Any unauthorized use, disclosure, distribution, copying or dissemination is strictly prohibited. If you receive this transmission in error, please notify the sender immediately and return the original. 
<DIV></DIV>&gt;&lt;&lt; message3.txt &gt;&gt; 
<DIV></DIV></div></html>