Unix Timestamp Converter

Convert between Unix timestamps and human-readable dates in any timezone

Current Unix Timestamp
--
Current UTC Time
--
Current Local Time
--

Timestamp to Date

Date to Timestamp

Conversion Results

Unix Timestamp
--
UTC Time
--
Local Time
--
Selected Timezone
--

Additional Information

Convert between Unix timestamps and human-readable dates.

🌍 Timezone Information

What is a Unix Timestamp?

A Unix timestamp is the number of seconds that have elapsed since January 1, 1970 (midnight UTC/GMT), not counting leap seconds.

Common Timestamp Ranges

  • 0 - Unix epoch (Jan 1, 1970)
  • 1000000000 - Sep 9, 2001
  • 1234567890 - Feb 13, 2009
  • 2000000000 - May 18, 2033

Milliseconds vs Seconds

Some systems use milliseconds (13 digits) instead of seconds (10 digits). Our converter automatically detects the format.

💻 Programming Examples

// Get current timestamp
const timestamp = Math.floor(Date.now() / 1000);

// Timestamp to Date
const date = new Date(timestamp * 1000);

// Date to Timestamp
const newTimestamp = Math.floor(new Date('2023-01-01').getTime() / 1000);
import time
from datetime import datetime

# Get current timestamp
timestamp = int(time.time())

# Timestamp to Date
date = datetime.fromtimestamp(timestamp)

# Date to Timestamp
new_timestamp = int(datetime(2023, 1, 1).timestamp())
// Get current timestamp
$timestamp = time();

// Timestamp to Date
$date = date('Y-m-d H:i:s', $timestamp);

// Date to Timestamp
$newTimestamp = strtotime('2023-01-01');
import java.time.Instant;

// Get current timestamp
long timestamp = Instant.now().getEpochSecond();

// Timestamp to Date
Instant instant = Instant.ofEpochSecond(timestamp);

// Date to Timestamp
long newTimestamp = Instant.parse("2023-01-01T00:00:00Z").getEpochSecond();
// Get current timestamp
long timestamp = DateTimeOffset.UtcNow.ToUnixTimeSeconds();

// Timestamp to Date
DateTimeOffset date = DateTimeOffset.FromUnixTimeSeconds(timestamp);

// Date to Timestamp
long newTimestamp = new DateTimeOffset(2023, 1, 1, 0, 0, 0, TimeSpan.Zero).ToUnixTimeSeconds();
Dark Mode

Note: This converter handles both seconds (10-digit) and milliseconds (13-digit) Unix timestamps. Timezone conversions account for daylight saving time where applicable.