Class: ROX::TimeColumn
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
43 44 45 |
# File 'lib/rox/rox.rb', line 43 def from_ox(client, value) Time.at(client.config.timezone.local_to_utc(value / 1000)) end |
#to_ox(client, value) ⇒ Object
47 48 49 |
# File 'lib/rox/rox.rb', line 47 def to_ox(client, value) client.config.timezone.utc_to_local(value.to_i) * 1000 end |