Sha256: eed7559f4f6ce3811b9bff435b7ec6cce5f2203e1294aa513f6d10e46e692c85
Contents?: true
Size: 360 Bytes
Versions: 3
Compression:
Stored size: 360 Bytes
Contents
angular.module("SWAT").factory "SwatHelpers", -> Helpers = formatTime: (seconds) -> hh = Math.floor(seconds / 3600) mm = Math.floor(seconds / 60) % 60 ss = Math.floor(seconds) % 60 (if hh then (if hh < 10 then '0' else '') + hh + ':' else '') + (if mm < 10 and hh then '0' else '') + mm + ':' + (if ss < 10 then '0' else '') + ss
Version data entries
3 entries across 3 versions & 1 rubygems