Class: MTP::Properties::Forms::DateTime
- Defined in:
- lib/mtp/properties.rb
Instance Method Summary collapse
-
#initialize(form, dts) ⇒ DateTime
constructor
A new instance of DateTime.
- #pack(datatype, dts, value) ⇒ Object
- #unpack(datatype, dts, raw_value) ⇒ Object
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 |