<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Time and date calculation in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/time-and-date-calculation/m-p/3586602#M103757</link>
    <description>In C, you fill out a struct tm variable for each of the times and then call mktime() for each to give you time_t seconds for each. These values represent seconds since 1-Jan-1970 00:00:00 UTC. Find the difference between these two time_t values and divide by 86400 and you have the number of days different. Man mktime for details.&lt;BR /&gt;</description>
    <pubDate>Wed, 20 Jul 2005 07:28:36 GMT</pubDate>
    <dc:creator>A. Clay Stephenson</dc:creator>
    <dc:date>2005-07-20T07:28:36Z</dc:date>
    <item>
      <title>Time and date calculation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/time-and-date-calculation/m-p/3586600#M103755</link>
      <description>Hi Guys,&lt;BR /&gt;&lt;BR /&gt;  I need to write a program in C or shell to calculate the time interval between 2 timing... e.g. &lt;BR /&gt;&lt;BR /&gt;Start=07/08/2005,14:05:29&lt;BR /&gt;End  =07/08/2005,16:28:46&lt;BR /&gt;&lt;BR /&gt;What i find difficult is  if say start is at 29/02/2005 and end is at 1/03/2005.. how can i know how many days in between this 2? &lt;BR /&gt;&lt;BR /&gt;Is there anyway?&lt;BR /&gt;&lt;BR /&gt;Thank u.</description>
      <pubDate>Wed, 20 Jul 2005 04:47:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/time-and-date-calculation/m-p/3586600#M103755</guid>
      <dc:creator>Henry Chua</dc:creator>
      <dc:date>2005-07-20T04:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Time and date calculation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/time-and-date-calculation/m-p/3586601#M103756</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Have you looked at Clay Stephenssons "Date Hammer" ?&lt;BR /&gt;You can find it here:&lt;BR /&gt;&lt;A href="http://www.cmve.net/~merijn/" target="_blank"&gt;http://www.cmve.net/~merijn/&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Jul 2005 04:54:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/time-and-date-calculation/m-p/3586601#M103756</guid>
      <dc:creator>Leif Halvarsson_2</dc:creator>
      <dc:date>2005-07-20T04:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Time and date calculation</title>
      <link>https://community.hpe.com/t5/operating-system-linux/time-and-date-calculation/m-p/3586602#M103757</link>
      <description>In C, you fill out a struct tm variable for each of the times and then call mktime() for each to give you time_t seconds for each. These values represent seconds since 1-Jan-1970 00:00:00 UTC. Find the difference between these two time_t values and divide by 86400 and you have the number of days different. Man mktime for details.&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Jul 2005 07:28:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/time-and-date-calculation/m-p/3586602#M103757</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-07-20T07:28:36Z</dc:date>
    </item>
  </channel>
</rss>

