<?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: file creation time in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-creation-time/m-p/4290064#M336665</link>
    <description>You can use perl for this.&lt;BR /&gt;&lt;BR /&gt;perl -e 'foreach(@ARGV){$t =localtime ( ( ( stat ( $_ ) ) [9] ) ); printf("%-20s%s\n",$_,$t);}' *&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Awadhesh</description>
    <pubDate>Mon, 20 Oct 2008 08:16:28 GMT</pubDate>
    <dc:creator>AwadheshPandey</dc:creator>
    <dc:date>2008-10-20T08:16:28Z</dc:date>
    <item>
      <title>file creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-creation-time/m-p/4290062#M336663</link>
      <description>I hv a exsting file in my system , i use command "ls" can check its creation time , but it only show the time in date and time (in minute) , if I want it show the time in second , can advise what can i do ?</description>
      <pubDate>Mon, 20 Oct 2008 08:02:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-creation-time/m-p/4290062#M336663</guid>
      <dc:creator>haeman</dc:creator>
      <dc:date>2008-10-20T08:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: file creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-creation-time/m-p/4290063#M336664</link>
      <description>unix does not store the creation time, so I am afraid it is not possible to show that.&lt;BR /&gt;&lt;BR /&gt;(blushing) regards and regrets,&lt;BR /&gt;&lt;BR /&gt;Johnson</description>
      <pubDate>Mon, 20 Oct 2008 08:12:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-creation-time/m-p/4290063#M336664</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2008-10-20T08:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: file creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-creation-time/m-p/4290064#M336665</link>
      <description>You can use perl for this.&lt;BR /&gt;&lt;BR /&gt;perl -e 'foreach(@ARGV){$t =localtime ( ( ( stat ( $_ ) ) [9] ) ); printf("%-20s%s\n",$_,$t);}' *&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Awadhesh</description>
      <pubDate>Mon, 20 Oct 2008 08:16:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-creation-time/m-p/4290064#M336665</guid>
      <dc:creator>AwadheshPandey</dc:creator>
      <dc:date>2008-10-20T08:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: file creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-creation-time/m-p/4290065#M336666</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;As far as I know there is no info for seconds in the standard 'ls' command.&lt;BR /&gt;&lt;BR /&gt;That is funny because a command like touch,&lt;BR /&gt;to create a file allows you to add timestamp including seconds. Where do these seconds go.&lt;BR /&gt;&lt;BR /&gt;Anyway down to the nitty grityy:&lt;BR /&gt;&lt;BR /&gt;someone@somewhere:/opt/mozilla/icons $ ls -l&lt;BR /&gt;total 32&lt;BR /&gt;-rw-r--r-- 1 bin bin 1668 Mar 5 2004 mozicon16.xpm&lt;BR /&gt;-rw-r--r-- 1 bin bin 2944 Mar 5 2004 mozicon50.xpm&lt;BR /&gt;&lt;BR /&gt;Here is a single perl command that can print the timestamp of files with full date and time, accurate down to the seconds:&lt;BR /&gt;&lt;BR /&gt;perl -e 'foreach(@ARGV){$t =localtime ( ( ( stat ( $_ ) ) [9] ) ); printf("%-20s %s\n",$_,$t);}' *&lt;BR /&gt;&lt;BR /&gt;Happy ever after :))&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Oct 2008 08:18:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-creation-time/m-p/4290065#M336666</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2008-10-20T08:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: file creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-creation-time/m-p/4290066#M336667</link>
      <description>The cpio command will prob. be the solution that will give the information without using perl.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=774753" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=774753&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;# echo &lt;FILE_NAME&gt; |cpio -o 2&amp;gt;/dev/null|cpio -ivt 2&amp;gt;/dev/null&lt;/FILE_NAME&gt;</description>
      <pubDate>Mon, 20 Oct 2008 10:14:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-creation-time/m-p/4290066#M336667</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2008-10-20T10:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: file creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-creation-time/m-p/4290067#M336668</link>
      <description>As mentioned, you can check the last modification time with stat(2) and get the time_t value.  You can use perl, C or some other language to do this.</description>
      <pubDate>Mon, 20 Oct 2008 10:28:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-creation-time/m-p/4290067#M336668</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-10-20T10:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: file creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-creation-time/m-p/4290068#M336669</link>
      <description>A different/better "ls" can let you choose&lt;BR /&gt;a (less lame) date-time format.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/coreutils/" target="_blank"&gt;http://www.gnu.org/software/coreutils/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/coreutils/manual/coreutils.html#Formatting-file-timestamps" target="_blank"&gt;http://www.gnu.org/software/coreutils/manual/coreutils.html#Formatting-file-timestamps&lt;/A&gt;</description>
      <pubDate>Mon, 20 Oct 2008 12:22:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-creation-time/m-p/4290068#M336669</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-10-20T12:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: file creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-creation-time/m-p/4290069#M336670</link>
      <description>&lt;!--!*#--&gt;You could also make a copy of /usr/lib/nls/msg/C/ls.cat and change the default formats:&lt;BR /&gt;dumpmsg /usr/lib/nls/msg/C/ls.cat &amp;gt; ls.msg&lt;BR /&gt;&lt;BR /&gt;Change to:&lt;BR /&gt;11 %b %2d  %Y(%H:%M:%S)&lt;BR /&gt;12 %b %2d %H:%M:%S&lt;BR /&gt;&lt;BR /&gt;gencat ls.cat ls.msg&lt;BR /&gt;&lt;BR /&gt;Then invoke ll:&lt;BR /&gt;$ NLSPATH=%N.cat ll -tr&lt;BR /&gt;dr-xr-xr-x 2 bin bin  96 May 30  2002(09:27:15) ntp/&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Oct 2008 21:11:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-creation-time/m-p/4290069#M336670</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-10-20T21:11:59Z</dc:date>
    </item>
  </channel>
</rss>

