31 lines
1,010 B
TypeScript
31 lines
1,010 B
TypeScript
// Module ID: 4871
|
|
// Function ID: 4872
|
|
// Name: getTimeFormat
|
|
// Dependencies: [2]
|
|
// Exports: getTimeFormat
|
|
|
|
// Module 4871 (getTimeFormat)
|
|
let result = require("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");
|
|
};
|