Sha256: 9ff7b5031c8a968fd47cd4add0655ff025ee84fbbaddb1630f0421d0965edb7d
Contents?: true
Size: 418 Bytes
Versions: 4
Compression:
Stored size: 418 Bytes
Contents
module XeroGateway module Dates def self.included(base) base.extend(ClassMethods) end module ClassMethods def format_date_time(time) return time.strftime("%Y-%m-%dT%H:%M:%S") end def parse_date_time(time) Time.local(time[0..3].to_i, time[5..6].to_i, time[8..9].to_i, time[11..12].to_i, time[14..15].to_i, time[17..18].to_i) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems