Extract formating method to time helper

This commit is contained in:
Maximilian Grundke
2018-08-31 13:41:40 +02:00
parent 159e587254
commit 10945b6a09

View File

@ -9,4 +9,9 @@ module TimeHelper
nil
end
# given a delta in seconds, return a "Hours:Minutes:Seconds" representation
def format_time_difference(delta)
Time.at(delta).utc.strftime("%H:%M:%S")
end
end