mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6445aab472
commit
62fed7c91a
1 changed files with 3 additions and 1 deletions
4
time.c
4
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
|
||||
|
|
Loading…
Add table
Reference in a new issue