summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-21 00:44:06 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-21 00:44:06 +0000
commit4908827022c18d05fadaf54798fedd77452ef865 (patch)
treeedc78e2cfe8f873dc08fe2de52cadbf87ad8ba5b
parentc7ba10cc1367b1a756053983b8837ec39c851982 (diff)
* file.c: Document other cases of missing birthtime on OS with patch
provided by @sho-h similar to GH-817. [ci skip] [DOC] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49362 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--file.c9
2 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 434db2d7ff3..11dc94c0dcb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Jan 21 09:40:52 2015 Zachary Scott <e@zzak.io>
+
+ * file.c: Document other cases of missing birthtime on OS with patch
+ provided by @sho-h similar to GH-817. [ci skip] [DOC]
+
Wed Jan 21 09:09:19 2015 Tanaka Akira <akr@fsij.org>
* NEWS: References to tickets added.
diff --git a/file.c b/file.c
index 70afb0ded5c..dd05bb70381 100644
--- a/file.c
+++ b/file.c
@@ -892,6 +892,7 @@ rb_stat_ctime(VALUE self)
* stat.birthtime -> aTime
*
* Returns the birth time for <i>stat</i>.
+ *
* If the platform doesn't have birthtime, raises NotImplementedError.
*
* File.write("testfile", "foo")
@@ -2193,10 +2194,10 @@ rb_file_ctime(VALUE obj)
*
* _file_name_ can be an IO object.
*
- * Note that on Windows (NTFS), returns creation time (birth time).
- *
* File.birthtime("testfile") #=> Wed Apr 09 08:53:13 CDT 2003
*
+ * If the platform doesn't have birthtime, raises NotImplementedError.
+ *
*/
static VALUE
@@ -2221,10 +2222,10 @@ rb_file_s_birthtime(VALUE klass, VALUE fname)
*
* Returns the birth time for <i>file</i>.
*
- * Note that on Windows (NTFS), returns creation time (birth time).
- *
* File.new("testfile").birthtime #=> Wed Apr 09 08:53:14 CDT 2003
*
+ * If the platform doesn't have birthtime, raises NotImplementedError.
+ *
*/
static VALUE