ruby-changes:37281
From: zzak <ko1@a...>
Date: Wed, 21 Jan 2015 09:44:18 +0900 (JST)
Subject: [ruby-changes:37281] zzak:r49362 (trunk): * file.c: Document other cases of missing birthtime on OS with patch
zzak 2015-01-21 09:44:06 +0900 (Wed, 21 Jan 2015) New Revision: 49362 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49362 Log: * file.c: Document other cases of missing birthtime on OS with patch provided by @sho-h similar to GH-817. [ci skip] [DOC] Modified files: trunk/ChangeLog trunk/file.c Index: ChangeLog =================================================================== --- ChangeLog (revision 49361) +++ ChangeLog (revision 49362) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Jan 21 09:40:52 2015 Zachary Scott <e@z...> + + * 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@f...> * NEWS: References to tickets added. Index: file.c =================================================================== --- file.c (revision 49361) +++ file.c (revision 49362) @@ -892,6 +892,7 @@ rb_stat_ctime(VALUE self) https://github.com/ruby/ruby/blob/trunk/file.c#L892 * 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) https://github.com/ruby/ruby/blob/trunk/file.c#L2194 * * _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 f https://github.com/ruby/ruby/blob/trunk/file.c#L2222 * * 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/