diff options
-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 |