// Module ID: 4709 // Function ID: 4710 // Name: TIMESTAMP_FORMATS // Dependencies: [3925, 3837, 687, 2] // Exports: formatTimestampMention, parseTimestamp, unparseTimestamp // Module 4709 (TIMESTAMP_FORMATS) let obj = { t(date) { return require(3925) /* resetCache */.dateFormat(date, "LT"); }, T(date) { return require(3925) /* resetCache */.dateFormat(date, "LTS"); }, d(date) { return require(3925) /* resetCache */.dateFormat(date, "L"); }, D(date) { return require(3925) /* resetCache */.dateFormat(date, "LL"); }, f(date) { return require(3925) /* resetCache */.dateFormat(date, "LLL"); }, F(date) { return require(3925) /* resetCache */.dateFormat(date, "LLLL"); }, s(date) { return require(3925) /* resetCache */.dateFormat(date, "L LT"); }, S(date) { return require(3925) /* resetCache */.dateFormat(date, "L LTS"); }, R(toDate) { const result = importDefault(3837).relativeTimeThreshold("s"); const obj = importDefault(3837); const result1 = importDefault(3837).relativeTimeThreshold("s", 60); const obj2 = importDefault(3837); const result2 = importDefault(3837).relativeTimeThreshold("ss"); const obj3 = importDefault(3837); const result3 = importDefault(3837).relativeTimeThreshold("ss", -1); const obj4 = importDefault(3837); const result4 = importDefault(3837).relativeTimeThreshold("m"); const obj5 = importDefault(3837); const result5 = importDefault(3837).relativeTimeThreshold("m", 60); try { let tmpResult = tmp(3837); let fromNowResult = tmpResult(toDate.toDate()).fromNow(); tmpResult = tmp(3837); const result6 = tmpResult.relativeTimeThreshold("s", result); const tmpResultResult = tmpResult(toDate.toDate()); const result7 = tmp(3837).relativeTimeThreshold("ss", result2); const tmpResult1 = tmp(3837); const result8 = tmp(3837).relativeTimeThreshold("m", result4); if (fromNowResult == null) { const tmpResult3 = tmp(3837); fromNowResult = tmp(3837)(toDate.toDate()).fromNow(); const tmpResult4Result = tmp(3837)(toDate.toDate()); } return fromNowResult; } catch (err) { } } }; Object.setPrototypeOf(obj, null); const keys = Object.keys(obj); const regExp = new RegExp("^"); let result = require("set").fileFinishedImporting("modules/markup/TimestampUtils.tsx"); export const TIMESTAMP_FORMATS = obj; export const DEFAULT_TIMESTAMP_FORMAT = "f"; export const TIMESTAMP_REGEX = regExp; export const formatTimestampMention = function formatTimestampMention(arg0) { let format; let timestamp; ({ timestamp, format } = arg0); const tmp = importDefault(3837); const tmpResult = tmp(Number(timestamp) * importDefault(687).Millis.SECOND); if (tmpResult.isValid()) { let f; if (null != format) { f = obj[format]; } if (null == f) { f = obj.f; } obj = { timestamp: null, format: null, parsed: null, full: null, formatted: null }; obj[0] = timestamp; obj[1] = format; obj[2] = tmpResult; obj[3] = obj.F(tmpResult); obj[4] = f(tmpResult); return obj; } else { return null; } const NumberResult = Number(timestamp); }; export const parseTimestamp = function parseTimestamp(arg0, arg1) { const tmp = importDefault(3837); const tmpResult = tmp(Number(arg0) * importDefault(687).Millis.SECOND); let tmp3 = null; if (tmpResult.isValid()) { let f; if (null != arg1) { f = obj[arg1]; } if (null == f) { f = obj.f; } obj = { timestamp: null, format: null, parsed: null, full: null, formatted: null }; obj[0] = arg0; obj[1] = arg1; obj[2] = tmpResult; obj[3] = obj.F(tmpResult); obj[4] = f(tmpResult); tmp3 = obj; } return tmp3; }; export const unparseTimestamp = function unparseTimestamp(arg0, arg1) { if (null != arg1) { const _HermesInternal2 = HermesInternal; let combined = ""; } else { const _HermesInternal = HermesInternal; combined = ""; } return combined; };