<?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 Unix timestamp to VMS in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/converting-unix-timestamp-to-vms/m-p/3147140#M31114</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Take a look at strftime in C runtime which is used to format a struct tm.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt; time_t tp;&lt;BR /&gt; char ts[100];&lt;BR /&gt; time( &amp;amp;tp );&lt;BR /&gt; strftime( ts, 99, "%Y-%m-%d %H:%M:%S",&lt;BR /&gt;           localtime( &amp;amp;tp ) );&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Peter</description>
    <pubDate>Thu, 18 Dec 2003 07:47:13 GMT</pubDate>
    <dc:creator>Peter Skoog</dc:creator>
    <dc:date>2003-12-18T07:47:13Z</dc:date>
    <item>
      <title>Converting Unix timestamp to VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-unix-timestamp-to-vms/m-p/3147137#M31111</link>
      <description>I need to find a C function that can be passed a Unix timestamp (unsigned long), and return a managable (readable) date time format.&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Dec 2003 10:00:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-unix-timestamp-to-vms/m-p/3147137#M31111</guid>
      <dc:creator>Dana Vraspir</dc:creator>
      <dc:date>2003-12-17T10:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Unix timestamp to VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-unix-timestamp-to-vms/m-p/3147138#M31112</link>
      <description>I don't understand your question; in C over VMS you can use all unix function and all structure of unix time.&lt;BR /&gt;Please post more info for furthermore help.&lt;BR /&gt; &lt;BR /&gt;Bye&lt;BR /&gt;Antoniov&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Dec 2003 12:09:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-unix-timestamp-to-vms/m-p/3147138#M31112</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-12-17T12:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Unix timestamp to VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-unix-timestamp-to-vms/m-p/3147139#M31113</link>
      <description>Wouldn't ctime() do what you want?&lt;BR /&gt;&lt;BR /&gt;Your question is not clear, perhaps you don't have an understanding of the time functions available on VMS?  Please reference the latest copy of the HP C Run-Time Library Reference Manual for OpenVMS Systems, specifically chapter 11 which deals with date and time functions.  It is available on line at: &lt;A href="http://h71000.www7.hp.com/doc/732FINAL/5763/5763pro_019.html#date_time_chap" target="_blank"&gt;http://h71000.www7.hp.com/doc/732FINAL/5763/5763pro_019.html#date_time_chap&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If that doesn't help answer the question, please give us some more details, and we can try to help.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Brad McCusker&lt;BR /&gt;VMS Engineering</description>
      <pubDate>Wed, 17 Dec 2003 15:03:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-unix-timestamp-to-vms/m-p/3147139#M31113</guid>
      <dc:creator>Brad McCusker</dc:creator>
      <dc:date>2003-12-17T15:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Unix timestamp to VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-unix-timestamp-to-vms/m-p/3147140#M31114</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Take a look at strftime in C runtime which is used to format a struct tm.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt; time_t tp;&lt;BR /&gt; char ts[100];&lt;BR /&gt; time( &amp;amp;tp );&lt;BR /&gt; strftime( ts, 99, "%Y-%m-%d %H:%M:%S",&lt;BR /&gt;           localtime( &amp;amp;tp ) );&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Peter</description>
      <pubDate>Thu, 18 Dec 2003 07:47:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-unix-timestamp-to-vms/m-p/3147140#M31114</guid>
      <dc:creator>Peter Skoog</dc:creator>
      <dc:date>2003-12-18T07:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Unix timestamp to VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-unix-timestamp-to-vms/m-p/3147141#M31115</link>
      <description>Yes - ctime() does just what I wanted.&lt;BR /&gt;A little more research on my part would have answered this.&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Dec 2003 10:24:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-unix-timestamp-to-vms/m-p/3147141#M31115</guid>
      <dc:creator>Dana Vraspir</dc:creator>
      <dc:date>2003-12-18T10:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Converting Unix timestamp to VMS</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-unix-timestamp-to-vms/m-p/3147142#M31116</link>
      <description>Dana,&lt;BR /&gt;&lt;BR /&gt;Wouldn't the following example help ?&lt;BR /&gt;&lt;A href="http://h18000.www1.hp.com/support/asktima/operating_systems/009C99AA-F657C6A0-1C0096.html" target="_blank"&gt;http://h18000.www1.hp.com/support/asktima/operating_systems/009C99AA-F657C6A0-1C0096.html&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 07 Feb 2004 06:26:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-unix-timestamp-to-vms/m-p/3147142#M31116</guid>
      <dc:creator>Vouters</dc:creator>
      <dc:date>2004-02-07T06:26:30Z</dc:date>
    </item>
  </channel>
</rss>

