Class: Time
- Inherits:
-
Object
- Object
- Time
- Defined in:
- lib/fm_time.rb
Class Method Summary collapse
Instance Method Summary collapse
- #to_fm ⇒ Object (also: #convert_to_fm)
Class Method Details
.from_fm(time) ⇒ Object
6 7 8 |
# File 'lib/fm_time.rb', line 6 def self.from_fm(time) Time.strptime(time, '%m/%d/%Y %H:%M:%S') end |
Instance Method Details
#to_fm ⇒ Object Also known as: convert_to_fm
2 3 4 |
# File 'lib/fm_time.rb', line 2 def to_fm strftime('%m-%d-%Y %H:%M:%S') end |