format_time(time)
This is ported over from the yaml_tree in 1.9.3
# File lib/rubygems/psych_tree.rb, line 20 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