Sha256: f8bf4354e5b8c4345fa58fcf1a09d20af45a08ff3eb244e4d1eb4fd9f2444b80
Contents?: true
Size: 344 Bytes
Versions: 23
Compression:
Stored size: 344 Bytes
Contents
require "date" module Lutaml module Model module Type # Date and time representation class DateTime def self.cast(value) return if value.nil? ::DateTime.parse(value.to_s).new_offset(0) end def self.serialize(value) value.iso8601 end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems