ruby-changes:2144
From: ko1@a...
Date: 5 Oct 2007 16:13:05 +0900
Subject: [ruby-changes:2144] knu - Ruby:r13635 (trunk): * time.c (time_to_s): Fix documentation. Time format changed.
knu 2007-10-05 16:12:54 +0900 (Fri, 05 Oct 2007)
New Revision: 13635
Modified files:
trunk/ChangeLog
trunk/time.c
Log:
* time.c (time_to_s): Fix documentation. Time format changed.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/time.c?r1=13635&r2=13634
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13635&r2=13634
Index: time.c
===================================================================
--- time.c (revision 13634)
+++ time.c (revision 13635)
@@ -1186,11 +1186,14 @@
* time.to_s => string
*
* Returns a string representing <i>time</i>. Equivalent to calling
- * <code>Time#strftime</code> with a format string of ``<code>%a</code>
- * <code>%b</code> <code>%d</code> <code>%H:%M:%S</code>
- * <code>%Z</code> <code>%Y</code>''.
+ * <code>Time#strftime</code> with a format string of
+ * ``<code>%Y-%m-%d</code> <code>%H:%M:%S</code> <code>%z</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
Index: ChangeLog
===================================================================
--- ChangeLog (revision 13634)
+++ ChangeLog (revision 13635)
@@ -1,3 +1,7 @@
+Fri Oct 5 16:11:50 2007 Akinori MUSHA <knu@i...>
+
+ * time.c (time_to_s): Fix documentation. Time format changed.
+
Fri Oct 5 04:02:39 2007 Akinori MUSHA <knu@i...>
* lib/ipaddr.rb (in_addr, in6_addr, addr_mask): Make some minor
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml