From 62fed7c91a7a38e0469bbd454d1c4e8c373e91e5 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 19 Nov 2011 10:48:22 +0000 Subject: update doc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- time.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'time.c') diff --git a/time.c b/time.c index 96b717b701..6bf6035d68 100644 --- a/time.c +++ b/time.c @@ -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 -- cgit v1.2.3