Class: MTP::Properties::Forms::DateTime

Inherits:
None
  • Object
show all
Defined in:
lib/mtp/properties.rb

Instance Method Summary collapse

Constructor Details

#initialize(form, dts) ⇒ DateTime

Returns a new instance of DateTime.



178
179
# File 'lib/mtp/properties.rb', line 178

def initialize(form, dts)
end

Instance Method Details

#pack(datatype, dts, value) ⇒ Object



185
186
187
# File 'lib/mtp/properties.rb', line 185

def pack(datatype, dts, value)
  [ value ].pack("D")
end

#unpack(datatype, dts, raw_value) ⇒ Object



181
182
183
# File 'lib/mtp/properties.rb', line 181

def unpack(datatype, dts, raw_value)
  raw_value.unpack("D").first
end