Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Defined in:
- lib/gb_date/numeric.rb
Instance Method Summary collapse
Instance Method Details
#in_time_zone(*args) ⇒ Object
14 15 16 |
# File 'lib/gb_date/numeric.rb', line 14 def in_time_zone(*args) Time.at(self).in_time_zone(*args) end |
#to_date ⇒ Object
2 3 4 |
# File 'lib/gb_date/numeric.rb', line 2 def to_date Time.at(self).utc.to_date end |
#to_datetime ⇒ Object
10 11 12 |
# File 'lib/gb_date/numeric.rb', line 10 def to_datetime Time.at(self).utc.to_datetime end |
#to_time ⇒ Object
6 7 8 |
# File 'lib/gb_date/numeric.rb', line 6 def to_time Time.at(self).utc end |