hcode-core
Advanced tools
Comparing version 0.0.61 to 0.0.62
@@ -6,3 +6,6 @@ "use strict"; | ||
const date = new Date(seconds * 1000).toISOString(); | ||
if (seconds < 3600) { | ||
if (seconds < 600) { | ||
return date.substr(15, 4); | ||
} | ||
else if (seconds < 3600) { | ||
return date.substr(14, 5); | ||
@@ -9,0 +12,0 @@ } |
{ | ||
"name": "hcode-core", | ||
"version": "0.0.61", | ||
"version": "0.0.62", | ||
"description": "Hcode Core", | ||
@@ -5,0 +5,0 @@ "types": "typings.d.ts", |
export function humanSeconds(seconds: number): string { | ||
const date = new Date(seconds * 1000).toISOString(); | ||
if (seconds < 3600) { | ||
if (seconds < 600) { | ||
return date.substr(15, 4); | ||
} else if (seconds < 3600) { | ||
return date.substr(14, 5); | ||
@@ -6,0 +8,0 @@ } else { |
Sorry, the diff of this file is not supported yet
60941
1584