Extract formating method to time helper
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user