<?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: Modification time and creation time in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275726#M881978</link>
    <description>"ls -lc" it will tell you the last INODE modification time which could be identifical to the creation time (this is most unlikely).&lt;BR /&gt;&lt;BR /&gt;Remember any syscall that modifies the inode meta data will effect the time shown by "ls -lc" - I would be curious to know if there is a way.</description>
    <pubDate>Thu, 13 May 2004 13:23:28 GMT</pubDate>
    <dc:creator>Sundar_7</dc:creator>
    <dc:date>2004-05-13T13:23:28Z</dc:date>
    <item>
      <title>Modification time and creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275723#M881975</link>
      <description>Hi all !&lt;BR /&gt;&lt;BR /&gt;Is there a way to display creation time on HP-UX ?&lt;BR /&gt;&lt;BR /&gt;I must display the three different times of a file.&lt;BR /&gt;&lt;BR /&gt;I use the perl stat function. It happens that modification and creation time are always the same.&lt;BR /&gt;&lt;BR /&gt;If I use "ls -l" and "ls -lu", I can see access and modification date, but not creation.&lt;BR /&gt;&lt;BR /&gt;It seems to me like creation time is not really stored.&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Thu, 13 May 2004 13:11:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275723#M881975</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-05-13T13:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Modification time and creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275724#M881976</link>
      <description>fsdb has a field called ctime. That can be the creation time but not always. If the inode has changed like by chown etc then ctime will get altered.</description>
      <pubDate>Thu, 13 May 2004 13:20:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275724#M881976</guid>
      <dc:creator>Navin Bhat_2</dc:creator>
      <dc:date>2004-05-13T13:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Modification time and creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275725#M881977</link>
      <description>Hi Fred,&lt;BR /&gt;&lt;BR /&gt;Nope - absolute creation time is not stored.&lt;BR /&gt;There's no way to know this for sure.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Jeff</description>
      <pubDate>Thu, 13 May 2004 13:23:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275725#M881977</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2004-05-13T13:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Modification time and creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275726#M881978</link>
      <description>"ls -lc" it will tell you the last INODE modification time which could be identifical to the creation time (this is most unlikely).&lt;BR /&gt;&lt;BR /&gt;Remember any syscall that modifies the inode meta data will effect the time shown by "ls -lc" - I would be curious to know if there is a way.</description>
      <pubDate>Thu, 13 May 2004 13:23:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275726#M881978</guid>
      <dc:creator>Sundar_7</dc:creator>
      <dc:date>2004-05-13T13:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Modification time and creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275727#M881979</link>
      <description>As stated before, their is no creation time.&lt;BR /&gt; &lt;BR /&gt;The 3 time fields defined in a file inode are-&lt;BR /&gt; &lt;BR /&gt;ctime inode change date/time (ie chmod file)&lt;BR /&gt;mtime data content change of file (ie vi file)&lt;BR /&gt;atime data content read of file (ie cat file)&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Thu, 13 May 2004 13:45:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275727#M881979</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2004-05-13T13:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Modification time and creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275728#M881980</link>
      <description>Thanks for all replies !&lt;BR /&gt;&lt;BR /&gt;Rodney,&lt;BR /&gt;&lt;BR /&gt;I do not agree with one point :&lt;BR /&gt;vi changes the creation time. Try it, and see. That's exactly what confused me. I thought that was because of vi edits a copy of the file, but if you do :&lt;BR /&gt;echo &amp;gt;&amp;gt; myfile&lt;BR /&gt;creation date is also changed, whereas it should absolutly not (inode is not touched).&lt;BR /&gt;&lt;BR /&gt;If you want another example : /etc/passwd. I imagine that creation time shouldn't be equal to modification time, but...&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Thu, 13 May 2004 14:02:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275728#M881980</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-05-13T14:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Modification time and creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275729#M881981</link>
      <description>Sorry Fred, in UNIX there is no such thing as creation time; that metadata are simply not stored in the inode. There are 3 times fields --- all specified in seconds since 00:00:00 1-Jan-1970 UTC. 1) Mtime - time of last modification of the CONTENTS of a file 2) Atime - time of last access 3) Ctime --- time of last change of mode, owner, or group.&lt;BR /&gt;&lt;BR /&gt;Ctime is absolutely, positively not creation time; there just ain't no such animal. If any one of these 3 fields happens to coincide with the actual time the file was created, it's just that, coincidence.&lt;BR /&gt;</description>
      <pubDate>Thu, 13 May 2004 14:19:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275729#M881981</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-05-13T14:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Modification time and creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275730#M881982</link>
      <description>Clay,&lt;BR /&gt;&lt;BR /&gt;So if I understand, when I issue&lt;BR /&gt;echo &amp;gt;&amp;gt; myfile&lt;BR /&gt;ctime is changed cause opening and writing the file are issuing adjustments on the permissions (even if I am already owner).&lt;BR /&gt;&lt;BR /&gt;So ctime and mtime will only be different after a chmod, chowner...&lt;BR /&gt;&lt;BR /&gt;It's always a pleasure to have an answer from you.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Thu, 13 May 2004 14:29:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275730#M881982</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-05-13T14:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Modification time and creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275731#M881983</link>
      <description>Hello Fred,&lt;BR /&gt;   I think this is a known issue with 11.11 (PHCO_28530) and 11.23 where the st_ctime is changed because utime gets called. I tested this using the touch command. The behaviour is the same. I shall try this on a 11.00 system too. And also try after installing PHCO_28530.&lt;BR /&gt;&lt;BR /&gt;Rgds</description>
      <pubDate>Thu, 13 May 2004 14:37:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275731#M881983</guid>
      <dc:creator>Navin Bhat_2</dc:creator>
      <dc:date>2004-05-13T14:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Modification time and creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275732#M881984</link>
      <description>Okay do this:&lt;BR /&gt;&lt;BR /&gt;echo "XXX" &amp;gt; myfile&lt;BR /&gt;&lt;BR /&gt;ls -l myfile (modification time)&lt;BR /&gt;ls -lc myfile (change time)&lt;BR /&gt;ls -lu myfile (access time)&lt;BR /&gt;&lt;BR /&gt;wait about 2 minutes&lt;BR /&gt;&lt;BR /&gt;echo "YYY" &amp;gt;&amp;gt; myfile&lt;BR /&gt;and repeat the 3 ls commands&lt;BR /&gt;&lt;BR /&gt;wait about 2 more minutes&lt;BR /&gt;&lt;BR /&gt;chmod 640 myfile&lt;BR /&gt;ls -l myfile (mtime)&lt;BR /&gt;ls -lc myfile (ctime)&lt;BR /&gt;&lt;BR /&gt;Again, if you happen to know the time a file was created, it's only accidental.&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Thu, 13 May 2004 14:59:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275732#M881984</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-05-13T14:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Modification time and creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275733#M881985</link>
      <description>&amp;gt; Again, if you happen to know the time a file was created, it's only accidental. &lt;BR /&gt;&lt;BR /&gt;I understand and agree with that. Also your test runs fine, and I have the three times different.&lt;BR /&gt;What confused me was just that if you invert the two last (first chmod, then &amp;gt;&amp;gt;), you will have ctime=mtime. (but due to your precedent post, it's clear to me)&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred&lt;BR /&gt;</description>
      <pubDate>Thu, 13 May 2004 15:05:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275733#M881985</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2004-05-13T15:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: Modification time and creation time</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275734#M881986</link>
      <description>The reason echo "something" &amp;gt;&amp;gt; to_a_file will alter the ctime is because the inode information for EOF changes.&lt;BR /&gt;&lt;BR /&gt;The touch(1) manpage documents the following:&lt;BR /&gt;&lt;BR /&gt;DESCRIPTION&lt;BR /&gt;      touch updates the access, modification, and last-change times of each&lt;BR /&gt;      argument. &lt;BR /&gt;&lt;BR /&gt;For vi, it makes changes into a tmp file until the file is saved, when it then removes the old file and renames the tmp file to the old name.  &lt;BR /&gt;&lt;BR /&gt;Hope this clarifies why ctime is updated.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 18 May 2004 15:21:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/modification-time-and-creation-time/m-p/3275734#M881986</guid>
      <dc:creator>Navin Bhat_2</dc:creator>
      <dc:date>2004-05-18T15:21:39Z</dc:date>
    </item>
  </channel>
</rss>

