3 wiersze
349 B
JavaScript
3 wiersze
349 B
JavaScript
|
const timeSince=o=>{var o=Math.floor((new Date-o)/1e3),t=Math.floor(o/31536e3);return 1<t?t+" years":1<(t=Math.floor(o/2592e3))?t+" months":1<(t=Math.floor(o/86400))?t+" days":1<(t=Math.floor(o/3600))?t+" hours":1<(t=Math.floor(o/60))?t+" minutes":Math.floor(o)+" seconds"};export default timeSince;
|
||
|
//# sourceMappingURL=timeSince - Copy.min.js.map
|