[前][次][番号順一覧][スレッド一覧]

ruby-changes:17833

From: naruse <ko1@a...>
Date: Sun, 21 Nov 2010 04:38:50 +0900 (JST)
Subject: [ruby-changes:17833] Ruby:r29844 (trunk): NTFS's ctime is creation time!

naruse	2010-11-21 04:38:42 +0900 (Sun, 21 Nov 2010)

  New Revision: 29844

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29844

  Log:
    NTFS's ctime is creation time! [ruby-core:33269]
    
    Note that UFS2, HFS+, ZFS, and ext4 also have birth time.

  Modified files:
    trunk/file.c

Index: file.c
===================================================================
--- file.c	(revision 29843)
+++ file.c	(revision 29844)
@@ -713,6 +713,8 @@
  *  directory information about the file was changed, not the file
  *  itself).
  *
+ *  Note that on Windows (NTFS), returns creation time (birth time).
+ *
  *     File.stat("testfile").ctime   #=> Wed Apr 09 08:53:14 CDT 2003
  *
  */
@@ -1869,6 +1871,8 @@
  *  directory information about the file was changed, not the file
  *  itself).
  *
+ *  Note that onn Windows (NTFS), returns creation time (birth time).
+ *
  *     File.ctime("testfile")   #=> Wed Apr 09 08:53:13 CDT 2003
  *
  */
@@ -1892,6 +1896,8 @@
  *  Returns the change time for <i>file</i> (that is, the time directory
  *  information about the file was changed, not the file itself).
  *
+ *  Note that onn Windows (NTFS), returns creation time (birth time).
+ *
  *     File.new("testfile").ctime   #=> Wed Apr 09 08:53:14 CDT 2003
  *
  */

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]