decord/beta/source/utils/native/TimeUtils.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

33 lines
1 KiB
TypeScript

// Module ID: 5387
// Function ID: 5388
// Name: utils/TimeUtils
// Dependencies: [2]
// Exports: getTimeFormat
// Module 5387 (utils/TimeUtils)
import size from "module_2" /* 2 */;
let result = size.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");
};