<?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: converting seconds since 1980 to current date in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-seconds-since-1980-to-current-date/m-p/4066956#M734792</link>
    <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Great scripts for figuring things like this out.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.ws/merijn/caljd-2.25.sh" target="_blank"&gt;http://hpux.ws/merijn/caljd-2.25.sh&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.ws/merijn/caljd-2.2.pl" target="_blank"&gt;http://hpux.ws/merijn/caljd-2.2.pl&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I use these as production scripts. Written by A. Clay Stephenson&lt;BR /&gt;&lt;BR /&gt;SEP</description>
    <pubDate>Fri, 07 Sep 2007 07:20:35 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2007-09-07T07:20:35Z</dc:date>
    <item>
      <title>converting seconds since 1980 to current date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-seconds-since-1980-to-current-date/m-p/4066954#M734790</link>
      <description>Hi, I have a database with dates in "HP/Apollo seconds since 1980."  How can I convert this (under Windows) to date/time, with leap years, days, seconds etc. considered? &lt;BR /&gt;&lt;BR /&gt;Thanks MUCH in advance for help.  &lt;BR /&gt;&lt;BR /&gt;Carolyn</description>
      <pubDate>Fri, 07 Sep 2007 06:57:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-seconds-since-1980-to-current-date/m-p/4066954#M734790</guid>
      <dc:creator>carolyn sorensen</dc:creator>
      <dc:date>2007-09-07T06:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: converting seconds since 1980 to current date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-seconds-since-1980-to-current-date/m-p/4066955#M734791</link>
      <description>Perl can readily solve this on Windows and Unix alike. Just figure out 'since 1980' once, and then add that as base to any Apollo date.&lt;BR /&gt;&lt;BR /&gt;Base:&lt;BR /&gt;&lt;BR /&gt;$ perl -e 'use Time::Local; print timelocal(0,0,0,1,0,1980) '&lt;BR /&gt;315550800&lt;BR /&gt;&lt;BR /&gt;Use: &lt;BR /&gt;&lt;BR /&gt;$ perl -e 'print scalar localtime(315550800 + 3650)'&lt;BR /&gt;Tue Jan  1 01:00:50 1980&lt;BR /&gt;&lt;BR /&gt;$ perl -e 'print scalar localtime(315550800 + 403650)'&lt;BR /&gt;Sat Jan  5 16:07:30 1980&lt;BR /&gt;&lt;BR /&gt;Check out the perl documenation to see how to get the components of such new time:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://perldoc.perl.org/functions/localtime.html" target="_blank"&gt;http://perldoc.perl.org/functions/localtime.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps some,&lt;BR /&gt;Hein van den Heuvel (at gmail dot com)&lt;BR /&gt;HvdH Performance Consulting&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2007 07:08:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-seconds-since-1980-to-current-date/m-p/4066955#M734791</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-09-07T07:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: converting seconds since 1980 to current date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-seconds-since-1980-to-current-date/m-p/4066956#M734792</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;Great scripts for figuring things like this out.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.ws/merijn/caljd-2.25.sh" target="_blank"&gt;http://hpux.ws/merijn/caljd-2.25.sh&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.ws/merijn/caljd-2.2.pl" target="_blank"&gt;http://hpux.ws/merijn/caljd-2.2.pl&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I use these as production scripts. Written by A. Clay Stephenson&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Fri, 07 Sep 2007 07:20:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-seconds-since-1980-to-current-date/m-p/4066956#M734792</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-09-07T07:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: converting seconds since 1980 to current date</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/converting-seconds-since-1980-to-current-date/m-p/4066957#M734793</link>
      <description>Thanks guys!  I needed the hint about Julian dates.  I got the date for 1/1/1980 using the script cal_jdate().  When added to our 'date' value &amp;amp; converted back to gregorian, it works beautifully.  (Poor documentation on top of all else -- the doc says seconds since 1980, but its clearly not.)&lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;Carolyn&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Sep 2007 09:09:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/converting-seconds-since-1980-to-current-date/m-p/4066957#M734793</guid>
      <dc:creator>carolyn sorensen</dc:creator>
      <dc:date>2007-09-07T09:09:37Z</dc:date>
    </item>
  </channel>
</rss>

