class Aws::Xml::Parser
def timestamp(value)
def timestamp(value) case value when nil then nil when /^\d+$/ then Time.at(value.to_i) else begin Time.parse(value) rescue ArgumentError raise "unhandled timestamp format `#{value}'" end end end
def timestamp(value) case value when nil then nil when /^\d+$/ then Time.at(value.to_i) else begin Time.parse(value) rescue ArgumentError raise "unhandled timestamp format `#{value}'" end end end