Web
Unix Timestamps in TypeScript
Typed Date manipulations with Intl formatting.
Complete TypeScript Recipe
// 1. Get current Unix timestamp
const currentSec: number = Math.floor(Date.now() / 1000);
const currentMs: number = Date.now();
// 2. Format timestamp (1710000000) with Intl
const date: Date = new Date(1710000000000);
const formatted: string = new Intl.DateTimeFormat('en-US', {
dateStyle: 'full',
timeStyle: 'long',
timeZone: 'UTC'
}).format(date);
console.log(formatted);
Test With Live Converter
Epoch → Human Date
Paste any Unix timestamp. The unit is auto-detected from its magnitude.
Auto-detects seconds, milliseconds, microseconds, or nanoseconds. Example: 1735689600
Detected:Auto (Seconds)
UTC ISO 8601
–
Local — auto
–
RFC 2822 / GMT
–
Seconds Value
–
Relative Time
–