return time string
This commit is contained in:
1 parent
1298b23844
commit
9c40021318
3 files changed
+8
-23
No files matched your search
@@ -104,10 +104,10 @@ export const getHumanReadableDuration = (ms) => {
|
||||
|
||||
if (result.length === 0) {
|
||||
// fallback for durations < 1s
|
||||
return { time: 0, units: "seconds" };
|
||||
return "0s";
|
||||
}
|
||||
|
||||
return { time: result.join(" "), units: null };
|
||||
return result.join(" ");
|
||||
};
|
||||
|
||||
export const formatDate = (date, customOptions) => {
|
||||
|
||||
Reference in new issue
Block a user