class Abstractive::TimeSpans
Public Class Methods
at(text, format=STANDARD_FORMAT)
click to toggle source
# File lib/abstractive/timespans.rb, line 71 def at(text, format=STANDARD_FORMAT) DateTime.strptime(text, format).to_time rescue => ex Abstractive[:logger].exception(ex,"Trouble turning string into DateTime and then Time object.") end
new(i)
click to toggle source
# File lib/abstractive/timespans.rb, line 67 def initialize(i); @i = i end
Public Instance Methods
to_i()
click to toggle source
# File lib/abstractive/timespans.rb, line 68 def to_i; @i end