1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

time.c: add example [ci skip]

* time.c (time_asctime): [DOC] add ctime example, not only
  asctime.  [ruby-core:75126] [Bug #12310]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-04-22 11:34:05 +00:00
parent bc65dbcdeb
commit 5fd589287d
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Fri Apr 22 20:34:04 2016 Nobuyoshi Nakada <nobu@ruby-lang.org>
* time.c (time_asctime): [DOC] add ctime example, not only
asctime. [ruby-core:75126] [Bug #12310]
Fri Apr 22 18:44:32 2016 NARUSE, Yui <naruse@ruby-lang.org>
* variable.c: use uint32_t instead of long to avoid confusion about

1
time.c
View file

@ -3547,6 +3547,7 @@ static VALUE strftime_cstr(const char *fmt, size_t len, VALUE time, rb_encoding
* Returns a canonical string representation of _time_.
*
* Time.now.asctime #=> "Wed Apr 9 08:56:03 2003"
* Time.now.ctime #=> "Wed Apr 9 08:56:03 2003"
*/
static VALUE