Class: Time

Inherits:
Object
  • Object
show all
Defined in:
lib/fm_time.rb

Class Method Summary collapse

Instance Method Summary collapse

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_fmObject 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