Function convertSecondsToTimeUnit
- convertSecondsToTimeUnit(seconds: number, unitNames: {
day: string;
hour: string;
minute: string;
}): {
time: string;
unit: string;
} | {
time: number;
unit: string;
}
-
Parameters
-
seconds: number
-
unitNames: {
day: string;
hour: string;
minute: string;
}
-
day: string
-
hour: string
-
minute: string
Returns {
time: string;
unit: string;
} | {
time: number;
unit: string;
}
Name
convertSecondsToTimeUnit
Description
Convert seconds to time unit
Returns
time and unit
Example