UNPKG

810 BSource Map (JSON)View Raw
1{"version":3,"sources":["secondsToTime.js"],"names":["module","exports","secondsToTime","rawSeconds","hours","Math","floor","minutes","seconds"],"mappings":"AAAAA,MAAM,CAACC,OAAP,GAAiB,SAASC,aAAT,CAAwBC,UAAxB,EAAoC;AACnD,MAAMC,KAAK,GAAGC,IAAI,CAACC,KAAL,CAAWH,UAAU,GAAG,IAAxB,IAAgC,EAA9C;AACA,MAAMI,OAAO,GAAGF,IAAI,CAACC,KAAL,CAAWH,UAAU,GAAG,EAAxB,IAA8B,EAA9C;AACA,MAAMK,OAAO,GAAGH,IAAI,CAACC,KAAL,CAAWH,UAAU,GAAG,EAAxB,CAAhB;AAEA,SAAO;AAAEC,IAAAA,KAAK,EAALA,KAAF;AAASG,IAAAA,OAAO,EAAPA,OAAT;AAAkBC,IAAAA,OAAO,EAAPA;AAAlB,GAAP;AACD,CAND","sourcesContent":["module.exports = function secondsToTime (rawSeconds) {\n const hours = Math.floor(rawSeconds / 3600) % 24\n const minutes = Math.floor(rawSeconds / 60) % 60\n const seconds = Math.floor(rawSeconds % 60)\n\n return { hours, minutes, seconds }\n}\n"]}
\No newline at end of file