summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-19 10:48:22 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-19 10:48:22 +0000
commit62fed7c91a7a38e0469bbd454d1c4e8c373e91e5 (patch)
treefa0dc5bb92bb4db6ae974e00509d092456f4a8cd /time.c
parent6445aab4724529f511c5d2908b452e8145560f14 (diff)
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c4
1 files changed, 3 insertions, 1 deletions
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