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 --- time.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'time.c') 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