ruby-changes:21742
From: akr <ko1@a...>
Date: Sat, 19 Nov 2011 19:48:32 +0900 (JST)
Subject: [ruby-changes:21742] akr:r33791 (trunk): update doc.
akr 2011-11-19 19:48:22 +0900 (Sat, 19 Nov 2011) New Revision: 33791 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33791 Log: update doc. Modified files: trunk/time.c Index: time.c =================================================================== --- time.c (revision 33790) +++ time.c (revision 33791) @@ -1799,7 +1799,7 @@ 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 @@ * 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/