<?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 in seconds ?? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/date-in-seconds/m-p/2452337#M11368</link>
    <description>A perl one-liner will achieve this for you:&lt;BR /&gt;&lt;BR /&gt;perl -e '$time = time ; print "$time n"'&lt;BR /&gt;&lt;BR /&gt;This returns the system time in seconds (no. of seconds since 1/1/1970)&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 13 Oct 2000 00:48:10 GMT</pubDate>
    <dc:creator>CITEC HP TEAM</dc:creator>
    <dc:date>2000-10-13T00:48:10Z</dc:date>
    <item>
      <title>Date in seconds ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-in-seconds/m-p/2452333#M11364</link>
      <description>Hi,&lt;BR /&gt;dose anyone know how to visualize the actual date of the system in seconds?&lt;BR /&gt;&lt;BR /&gt;Thanks &lt;BR /&gt;By</description>
      <pubDate>Wed, 11 Oct 2000 09:05:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-in-seconds/m-p/2452333#M11364</guid>
      <dc:creator>sandro ginnari</dc:creator>
      <dc:date>2000-10-11T09:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Date in seconds ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-in-seconds/m-p/2452334#M11365</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can do it with the following C program:-&lt;BR /&gt;&lt;BR /&gt;#include &lt;TIME.H&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;main(argc,argv)&lt;BR /&gt;int argc;&lt;BR /&gt;char *argv[];&lt;BR /&gt;{&lt;BR /&gt;        struct  tm timeinfo;&lt;BR /&gt;&lt;BR /&gt;        printf("%dn",time(NULL));&lt;BR /&gt;        exit(0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John&lt;/STDIO.H&gt;&lt;/TIME.H&gt;</description>
      <pubDate>Wed, 11 Oct 2000 09:10:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-in-seconds/m-p/2452334#M11365</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-10-11T09:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Date in seconds ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-in-seconds/m-p/2452335#M11366</link>
      <description>In fact all you need is:-&lt;BR /&gt;&lt;BR /&gt;#include &lt;TIME.H&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;&lt;BR /&gt;main(argc,argv)&lt;BR /&gt;int argc;&lt;BR /&gt;char *argv[];&lt;BR /&gt;{&lt;BR /&gt;        printf("%dn",time(NULL));&lt;BR /&gt;        exit(0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;This prints out the current system time in 'seconds since the epoch', see 'man 2 time' for details.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John&lt;/STDIO.H&gt;&lt;/TIME.H&gt;</description>
      <pubDate>Wed, 11 Oct 2000 09:15:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-in-seconds/m-p/2452335#M11366</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-10-11T09:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date in seconds ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-in-seconds/m-p/2452336#M11367</link>
      <description>Hello Sandro,&lt;BR /&gt;&lt;BR /&gt;the easiest way from the shell is to create&lt;BR /&gt;an at-job to be started in 1 minute, the &lt;BR /&gt;name of the job is the amount of seconds&lt;BR /&gt;from 1.1.1970 to the start-time of the job.&lt;BR /&gt;HTH,&lt;BR /&gt;   Wodisch</description>
      <pubDate>Thu, 12 Oct 2000 17:00:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-in-seconds/m-p/2452336#M11367</guid>
      <dc:creator>Wodisch</dc:creator>
      <dc:date>2000-10-12T17:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Date in seconds ??</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/date-in-seconds/m-p/2452337#M11368</link>
      <description>A perl one-liner will achieve this for you:&lt;BR /&gt;&lt;BR /&gt;perl -e '$time = time ; print "$time n"'&lt;BR /&gt;&lt;BR /&gt;This returns the system time in seconds (no. of seconds since 1/1/1970)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Oct 2000 00:48:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/date-in-seconds/m-p/2452337#M11368</guid>
      <dc:creator>CITEC HP TEAM</dc:creator>
      <dc:date>2000-10-13T00:48:10Z</dc:date>
    </item>
  </channel>
</rss>

