Class: Rhoconnect::StoreOrm::Marshal::DateTime

Inherits:
Object
  • Object
show all
Defined in:
lib/rhoconnect/store_orm.rb

Class Method Summary collapse

Class Method Details

.dump(v) ⇒ Object



254
255
256
# File 'lib/rhoconnect/store_orm.rb', line 254

def self.dump(v)
  v.strftime('%FT%T%z')
end

.load(v) ⇒ Object



258
259
260
# File 'lib/rhoconnect/store_orm.rb', line 258

def self.load(v)
  v && ::DateTime.strptime(v, '%FT%T%z')
end