Closed dmikurube closed 1 year ago
(Sorry, I've reported this in https://bugs.ruby-lang.org/issues/19552, but I found ruby/date would be more appropriate.)
ruby/date
puts Time.now.utc.strftime("%-:::z")
Until Ruby 3.0 (tested with 2.7.7 and 3.0.5) :
+00
From Ruby 3.1 (tested with 3.1.3 and 3.2.1)
-00
This is not a method of Date.
Date
(Sorry, I've reported this in https://bugs.ruby-lang.org/issues/19552, but I found
ruby/date
would be more appropriate.)Until Ruby 3.0 (tested with 2.7.7 and 3.0.5) :
From Ruby 3.1 (tested with 3.1.3 and 3.2.1)