<?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: Date Conversion in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/date-conversion/m-p/4878348#M848183</link>
    <description>Yes, i refer to epoch seconds (seconds since 1-Jan-1970 00:00:00 UTC).&lt;BR /&gt;Seconds in hex format.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# perl -e 'print scalar localtime(hex("0x4131d0ca"))'&lt;BR /&gt;&lt;BR /&gt;output:&lt;BR /&gt;Sun Aug 29 14:49:14 2004&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 05 Jan 2005 12:38:16 GMT</pubDate>
    <dc:creator>Giuseppe_13</dc:creator>
    <dc:date>2005-01-05T12:38:16Z</dc:date>
    <item>
      <title>Date Conversion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-conversion/m-p/4878344#M848179</link>
      <description>How is possible in HP-UX 11.0, to convert&lt;BR /&gt;a date from hexadecimal format to usual format ? &lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Wed, 05 Jan 2005 11:53:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-conversion/m-p/4878344#M848179</guid>
      <dc:creator>Giuseppe_13</dc:creator>
      <dc:date>2005-01-05T11:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-conversion/m-p/4878345#M848180</link>
      <description>You need to clarify what you mean by hexadecimal format. If you are referring to &lt;BR /&gt;epoch seconds (seconds since 1-Jan-1970 00:00:00 UTC) then&lt;BR /&gt;&lt;BR /&gt;perl -e 'print scalar localtime(1000)'&lt;BR /&gt;&lt;BR /&gt;where 1000 = 1000 seconds after 1-Jan-1700 00:00:00&lt;BR /&gt;&lt;BR /&gt;or if hex:&lt;BR /&gt;perl -e 'print scalar localtime(hex("0x1000"))'&lt;BR /&gt;&lt;BR /&gt;Man perlfunc for more details.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jan 2005 12:02:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-conversion/m-p/4878345#M848180</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-01-05T12:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-conversion/m-p/4878346#M848181</link>
      <description>Write a C program that takes the date in hexadecimal (presumably seconds since the Epoch?) and calls localtime() and strftime() to convert it into an ASCii string. Can't think of a way to do it in shell, probably is a smart way of doing it in Perl though.</description>
      <pubDate>Wed, 05 Jan 2005 12:03:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-conversion/m-p/4878346#M848181</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-01-05T12:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-conversion/m-p/4878347#M848182</link>
      <description>told you!!</description>
      <pubDate>Wed, 05 Jan 2005 12:05:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-conversion/m-p/4878347#M848182</guid>
      <dc:creator>Stephen Keane</dc:creator>
      <dc:date>2005-01-05T12:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-conversion/m-p/4878348#M848183</link>
      <description>Yes, i refer to epoch seconds (seconds since 1-Jan-1970 00:00:00 UTC).&lt;BR /&gt;Seconds in hex format.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# perl -e 'print scalar localtime(hex("0x4131d0ca"))'&lt;BR /&gt;&lt;BR /&gt;output:&lt;BR /&gt;Sun Aug 29 14:49:14 2004&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jan 2005 12:38:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-conversion/m-p/4878348#M848183</guid>
      <dc:creator>Giuseppe_13</dc:creator>
      <dc:date>2005-01-05T12:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: Date Conversion</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-conversion/m-p/4878349#M848184</link>
      <description>Problem solved by forum member.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 05 Jan 2005 12:42:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-conversion/m-p/4878349#M848184</guid>
      <dc:creator>Giuseppe_13</dc:creator>
      <dc:date>2005-01-05T12:42:10Z</dc:date>
    </item>
  </channel>
</rss>

