Class: ROX::DateColumn
Instance Attribute Summary
Attributes inherited from Column
#name, #number, #options, #type
Instance Method Summary collapse
Methods inherited from Column
Constructor Details
This class inherits a constructor from ROX::Column
Instance Method Details
#from_ox(client, value) ⇒ Object
55 56 57 |
# File 'lib/rox/rox.rb', line 55 def from_ox(client, value) Time.at(value / 1000) end |
#to_ox(client, value) ⇒ Object
59 60 61 |
# File 'lib/rox/rox.rb', line 59 def to_ox(client, value) value.to_i * 1000 end |