instance method
Gem::NoAliasYAMLTree#format_time
format_time(time)
lib/rubygems/psych_tree.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/rubygems/psych_tree.rb, line 26
def format_time(time)
if time.utc?
time.strftime("%Y-%m-%d %H:%M:%S.%9N Z")
else
time.strftime("%Y-%m-%d %H:%M:%S.%9N %:z")
end
end
This is ported over from the YAMLTree implementation in Ruby 1.9.3