diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-19 10:48:22 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-19 10:48:22 +0000 |
commit | 62fed7c91a7a38e0469bbd454d1c4e8c373e91e5 (patch) | |
tree | fa0dc5bb92bb4db6ae974e00509d092456f4a8cd | |
parent | 6445aab4724529f511c5d2908b452e8145560f14 (diff) |
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | time.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1799,7 +1799,7 @@ localtimew(wideval_t timew, struct vtm *result) struct time_object { wideval_t timew; /* time_t value * TIME_SCALE. possibly Rational. */ struct vtm vtm; - int gmt; + int gmt; /* 0:utc 1:localtime 2:fixoff */ int tm_got; }; @@ -2496,6 +2496,8 @@ time_s_now(VALUE klass) * can be Integer, Float, Rational, or other Numeric. * non-portable feature allows the offset to be negative on some systems. * + * If a numeric argument is given, the result is in local time. + * * Time.at(0) #=> 1969-12-31 18:00:00 -0600 * Time.at(Time.at(0)) #=> 1969-12-31 18:00:00 -0600 * Time.at(946702800) #=> 1999-12-31 23:00:00 -0600 |