39 lines
1.6 KiB
TypeScript
39 lines
1.6 KiB
TypeScript
/* Metro module 4690; source: utils/native/TimeUtils.tsx; dependencies: [2] */
|
|
function _fun40563(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#40563, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4868:6, offset: 0x01104fb2, size: 85 bytes, params: 8, frame: 15
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('utils/native/TimeUtils.tsx');
|
|
exports.getTimeFormat = getTimeFormat;
|
|
}
|
|
|
|
function getTimeFormat(a0, a1) { // fn#40564, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4868:168, offset: 0x01105007, size: 208 bytes, params: 3, frame: 19
|
|
var r0;
|
|
var String;
|
|
let value = a0 | 0;
|
|
const value2 = value % 60;
|
|
value = (value - value2) / 60;
|
|
const padMinutes = a1?.padMinutes;
|
|
if (padMinutes == null) {
|
|
String = global.String;
|
|
value = String(value);
|
|
String = global.String;
|
|
value = '' + value + ':' + String(value2).padStart(2, '0');
|
|
r0 = value;
|
|
} else if (padMinutes) {
|
|
String = global.String;
|
|
value = String(value);
|
|
value = value.padStart(2, '0');
|
|
String = global.String;
|
|
value = '' + value + ':' + String(value2).padStart(2, '0');
|
|
r0 = value;
|
|
} else {
|
|
String = global.String;
|
|
value = String(value);
|
|
String = global.String;
|
|
value = '' + value + ':' + String(value2).padStart(2, '0');
|
|
r0 = value;
|
|
}
|
|
return r0;
|
|
}
|
|
|