# Convert Unix timestamp (seconds)
curl https://tcpdata.com/time/1696435200
# Convert Unix timestamp (milliseconds)
curl https://tcpdata.com/time/1696435200000
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);
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']}")