REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 2.77 KB
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/node-cron/dist/cjs/time/localized-time.js
Text
Base64
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LocalizedTime = void 0; class LocalizedTime { timestamp; parts; timezone; constructor(date, timezone) { this.timestamp = date.getTime(); this.timezone = timezone; this.parts = buildDateParts(date, timezone); } toDate() { return new Date(this.timestamp); } toISO() { const gmt = this.parts.gmt.replace(/^GMT/, ''); const offset = gmt ? gmt : 'Z'; const pad = (n) => String(n).padStart(2, '0'); return `${this.parts.year}-${pad(this.parts.month)}-${pad(this.parts.day)}` + `T${pad(this.parts.hour)}:${pad(this.parts.minute)}:${pad(this.parts.second)}` + `.${String(this.parts.milisecond).padStart(3, '0')}` + offset; } getParts() { return this.parts; } set(field, value) { this.parts[field] = value; const newDate = new Date(this.toISO()); this.timestamp = newDate.getTime(); this.parts = buildDateParts(newDate, this.timezone); } } exports.LocalizedTime = LocalizedTime; function buildDateParts(date, timezone) { const dftOptions = { year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', weekday: 'short', hour12: false }; if (timezone) { dftOptions.timeZone = timezone; } const dateFormat = new Intl.DateTimeFormat('en-US', dftOptions); const parts = dateFormat.formatToParts(date).filter(part => { return part.type !== 'literal'; }).reduce((acc, part) => { acc[part.type] = part.value; return acc; }, {}); return { day: parseInt(parts.day), month: parseInt(parts.month), year: parseInt(parts.year), hour: parts.hour === '24' ? 0 : parseInt(parts.hour), minute: parseInt(parts.minute), second: parseInt(parts.second), milisecond: date.getMilliseconds(), weekday: parts.weekday, gmt: getTimezoneGMT(date, timezone) }; } function getTimezoneGMT(date, timezone) { const utcDate = new Date(date.toLocaleString('en-US', { timeZone: 'UTC' })); const tzDate = new Date(date.toLocaleString('en-US', { timeZone: timezone })); let offsetInMinutes = (utcDate.getTime() - tzDate.getTime()) / 60000; const sign = offsetInMinutes <= 0 ? '+' : '-'; offsetInMinutes = Math.abs(offsetInMinutes); if (offsetInMinutes === 0) return 'Z'; const hours = Math.floor(offsetInMinutes / 60).toString().padStart(2, '0'); const minutes = Math.floor(offsetInMinutes % 60).toString().padStart(2, '0'); return `GMT${sign}${hours}:${minutes}`; } //# sourceMappingURL=localized-time.js.map
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 9
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
localized-time.d.ts
487 B
lrw-r--r--
2026-02-21 00:54:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
localized-time.js
2.77 KB
lrw-r--r--
2026-02-21 00:53:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
localized-time.js.map
3.35 KB
lrw-r--r--
2026-02-21 00:54:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
matcher-walker.d.ts
418 B
lrw-r--r--
2026-02-21 00:54:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
matcher-walker.js
4.04 KB
lrw-r--r--
2026-02-21 00:53:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
matcher-walker.js.map
3.78 KB
lrw-r--r--
2026-02-21 00:54:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
time-matcher.d.ts
226 B
lrw-r--r--
2026-02-21 00:54:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
time-matcher.js
1.84 KB
lrw-r--r--
2026-02-21 00:54:00
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
time-matcher.js.map
1.51 KB
lrw-r--r--
2026-02-21 00:54:10
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).