Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions time.c
Original file line number Diff line number Diff line change
Expand Up @@ -3585,6 +3585,8 @@ time_fixoff(VALUE time)
* local time (using the local time zone in effect for this process).
*
* If +utc_offset+ is given, it is used instead of the local time.
* +utc_offset+ can be given as a human-readable string (eg. <code>"+09:00"</code>)
* or as a number of seconds (eg. <code>32400</code>).
*
* t = Time.utc(2000,1,1,20,15,1) #=> 2000-01-01 20:15:01 UTC
* t.utc? #=> true
Expand All @@ -3596,6 +3598,10 @@ time_fixoff(VALUE time)
* j = t.getlocal("+09:00") #=> 2000-01-02 05:15:01 +0900
* j.utc? #=> false
* t == j #=> true
*
* k = t.getlocal(9*60*60) #=> 2000-01-02 05:15:01 +0900
* k.utc? #=> false
* t == k #=> true
*/

static VALUE
Expand Down