From f3e7ae56969e1f46b5818c390b231a31cc1464b9 Mon Sep 17 00:00:00 2001 From: knu Date: Fri, 5 Oct 2007 07:12:54 +0000 Subject: * 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 --- ChangeLog | 4 ++++ time.c | 11 +++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6107948d2e..f78140fae6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Fri Oct 5 16:11:50 2007 Akinori MUSHA + + * time.c (time_to_s): Fix documentation. Time format changed. + Fri Oct 5 04:02:39 2007 Akinori MUSHA * lib/ipaddr.rb (in_addr, in6_addr, addr_mask): Make some minor diff --git a/time.c b/time.c index c48bc3bcfc..e22ac7367d 100644 --- a/time.c +++ b/time.c @@ -1186,11 +1186,14 @@ time_asctime(VALUE time) * time.to_s => string * * Returns a string representing time. Equivalent to calling - * Time#strftime with a format string of ``%a - * %b %d %H:%M:%S - * %Z %Y''. + * Time#strftime with a format string of + * ``%Y-%m-%d %H:%M:%S %z'' + * for a local time and + * ``%Y-%m-%d %H:%M:%S UTC'' + * 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 -- cgit v1.2.3