decord/source/utils/native/TimeUtils.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

33 lines
1 KiB
TypeScript

// Module ID: 5168
// Function ID: 5169
// Name: getTimeFormat
// Dependencies: [2]
// Exports: getTimeFormat
// Module 5168 (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");
};