diff options
| author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-05 07:12:54 +0000 |
|---|---|---|
| committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-05 07:12:54 +0000 |
| commit | 3eb1e3554144d5500b43ca3356be5e9bb48b9f3a (patch) | |
| tree | c43297791ca0eeeb08dc212c53c6a2e85aad4e52 /time.c | |
| parent | 814a4df2dd789cf024cdd003d7edda345ea9913c (diff) | |
| download | ruby-3eb1e3554144d5500b43ca3356be5e9bb48b9f3a.tar.gz ruby-3eb1e3554144d5500b43ca3356be5e9bb48b9f3a.tar.xz ruby-3eb1e3554144d5500b43ca3356be5e9bb48b9f3a.zip | |
* time.c (time_to_s): Fix documentation. Time format changed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
| -rw-r--r-- | time.c | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -1186,11 +1186,14 @@ time_asctime(VALUE time) * 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 |
