Skip to content

Commit

Permalink
Fix samplecode
Browse files Browse the repository at this point in the history
  • Loading branch information
ham0215 committed May 25, 2024
1 parent de32ab1 commit b4a93b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion refm/api/src/_builtin/Time
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,9 @@ p Time.new(2008, 6, 21, 13, 30, 0, "+09:00") # => 2008-06-21 13:30:00 +0900
@raise ArgumentError iso8601が無効な形式の場合に発生します。

#@samplecode
p Time.new("2024-02-15 10:20:30 +0900", in: "+0800") # => 2024-02-15 10:20:30 +0900
p Time.new("2024-02-15 10:20:30") # => 2024-02-15 10:20:30 +0900
p Time.new("2024-02-15 10:20:30 UTC", in: "+0800") # => 2024-02-15 10:20:30 UTC
p Time.new("2024-02-15 10:20:30", in: "+0800") # => 2024-02-15 10:20:30 +0800
#@end
#@end

Expand Down

0 comments on commit b4a93b9

Please sign in to comment.