Class: Arrest::TimeConv

Inherits:
Converter show all
Defined in:
lib/arrest/attributes/converter.rb

Class Method Summary collapse

Methods inherited from Converter

convert, target

Class Method Details

.mk_json(time) ⇒ Object



76
77
78
# File 'lib/arrest/attributes/converter.rb', line 76

def self.mk_json time
  time.strftime "%FT%T%z"
end

.parse(value) ⇒ Object



72
73
74
# File 'lib/arrest/attributes/converter.rb', line 72

def self.parse value
  Time.parse(value)
end