diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-20 19:38:42 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-20 19:38:42 +0000 |
commit | 1346b84c195cd6587f93dfe7faac199acc8f6936 (patch) | |
tree | f564fba80069e4467a15174d5e6b6c758250b9ba | |
parent | 99aaee351e42ca0d823ca959241668dc2eb77df2 (diff) | |
download | ruby-1346b84c195cd6587f93dfe7faac199acc8f6936.tar.gz |
NTFS's ctime is creation time! [ruby-core:33269]
Note that UFS2, HFS+, ZFS, and ext4 also have birth time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | file.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -713,6 +713,8 @@ rb_stat_mtime(VALUE self) * 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 @@ rb_file_mtime(VALUE obj) * 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 @@ rb_file_s_ctime(VALUE klass, VALUE fname) * 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 * */ |