← Back to Home

Time Converter

/time/:timestamp
Convert Unix timestamps (seconds or milliseconds) to human-readable formats including ISO 8601, RFC 2822, and individual components.
Try it now

Parameters

timestamp path
Unix timestamp in seconds or milliseconds

Examples

curl
# Convert Unix timestamp (seconds)
curl https://tcpdata.com/time/1696435200

# Convert Unix timestamp (milliseconds)
curl https://tcpdata.com/time/1696435200000
JavaScript (fetch)
const timestamp = 1696435200;
const response = await fetch(`https://tcpdata.com/time/${timestamp}`);
const time = await response.json();
console.log('ISO 8601:', time.iso8601);
console.log('Human readable:', time.human_readable);
Python (requests)
import requests

timestamp = 1696435200
response = requests.get(f'https://tcpdata.com/time/{timestamp}')
time = response.json()
print(f"ISO 8601: {time['iso8601']}")
print(f"Readable: {time['human_readable']}")