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

* time.c (time_to_s): Fix documentation. Time format changed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2007-10-05 07:12:54 +00:00
parent ee6901b199
commit f3e7ae5696
2 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,7 @@
Fri Oct 5 16:11:50 2007 Akinori MUSHA <knu@iDaemons.org>
* time.c (time_to_s): Fix documentation. Time format changed.
Fri Oct 5 04:02:39 2007 Akinori MUSHA <knu@iDaemons.org> Fri Oct 5 04:02:39 2007 Akinori MUSHA <knu@iDaemons.org>
* lib/ipaddr.rb (in_addr, in6_addr, addr_mask): Make some minor * lib/ipaddr.rb (in_addr, in6_addr, addr_mask): Make some minor

11
time.c
View file

@ -1186,11 +1186,14 @@ time_asctime(VALUE time)
* time.to_s => string * time.to_s => string
* *
* Returns a string representing <i>time</i>. Equivalent to calling * Returns a string representing <i>time</i>. Equivalent to calling
* <code>Time#strftime</code> with a format string of ``<code>%a</code> * <code>Time#strftime</code> with a format string of
* <code>%b</code> <code>%d</code> <code>%H:%M:%S</code> * ``<code>%Y-%m-%d</code> <code>%H:%M:%S</code> <code>%z</code>''
* <code>%Z</code> <code>%Y</code>''. * for a local time and
* ``<code>%Y-%m-%d</code> <code>%H:%M:%S</code> <code>UTC</code>''
* for a UTC time.
* *
* Time.now.to_s #=> "Wed Apr 09 08:56:04 CDT 2003" * Time.now.to_s #=> "2007-10-05 16:09:51 +0900"
* Time.now.utc.to_s #=> "2007-10-05 07:09:51 UTC"
*/ */
static VALUE static VALUE