33 lines
1 KiB
TypeScript
33 lines
1 KiB
TypeScript
// Module ID: 4993
|
|
// Function ID: 4994
|
|
// Name: getTimeFormat
|
|
// Dependencies: [2]
|
|
// Exports: getTimeFormat
|
|
|
|
// Module 4993 (getTimeFormat)
|
|
import set from "set" /* 2 */;
|
|
|
|
let result = set.fileFinishedImporting("utils/native/TimeUtils.tsx");
|
|
|
|
export const getTimeFormat = function getTimeFormat(playableDuration, padMinutes) {
|
|
padMinutes = undefined;
|
|
if (padMinutes != null) {
|
|
padMinutes = padMinutes.padMinutes;
|
|
}
|
|
const result = tmp % 60;
|
|
const result1 = (tmp - result) / 60;
|
|
if (padMinutes != null) {
|
|
if (padMinutes) {
|
|
const _String = String;
|
|
const _String2 = String;
|
|
const StringResult = String(result1);
|
|
const padStartResult = String(result1).padStart(2, "0");
|
|
const _HermesInternal = HermesInternal;
|
|
let combined = "" + padStartResult + ":" + String(result).padStart(2, "0");
|
|
const StringResult1 = String(result);
|
|
}
|
|
return combined;
|
|
}
|
|
const StringResult2 = String(result1);
|
|
combined = "" + StringResult2 + ":" + String(result).padStart(2, "0");
|
|
};
|