Helper module including date-specific functions for results.
Returns the end (done) date of processing as Time or nil
if it
doesn't exist.
# File lib/miga/result/dates.rb, line 18 def done_at date_at :done end
Time it took for the result to complete as Float in minutes.
# File lib/miga/result/dates.rb, line 24 def running_time a = started_at or return nil b = done_at or return nil (b - a).to_f / 60.0 end
Returns the start date of processing as Time or nil
if it
doesn't exist.
# File lib/miga/result/dates.rb, line 11 def started_at date_at :start end