Unix Timestamp Converter
Convert between human-readable date/time and Unix timestamps
Current Unix Timestamp
1763541054
Current Date/Time (UTC)
2025-11-19T08:30:54.808Z
API Usage
Integrate Unix timestamp conversion into your applications with our REST API.
Endpoint
POST /api/unix-timestampRequest Body
{
"mode": "toTimestamp", // or "toDate"
"input": "2024-01-15T10:30:00Z", // date string or timestamp
"timezone": "America/New_York", // optional, default: "UTC"
"format": "seconds" // optional, "seconds" or "milliseconds"
}cURL Example
curl -X POST https://toolteeno.com/api/unix-timestamp \
-H "Content-Type: application/json" \
-d '{
"mode": "toTimestamp",
"input": "2024-01-15T10:30:00Z",
"timezone": "UTC"
}'JavaScript Example
const response = await fetch('/api/unix-timestamp', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
mode: 'toDate',
input: 1705315800,
timezone: 'America/New_York',
format: 'seconds'
})
});
const data = await response.json();
console.log(data.output.iso); // "2024-01-15T10:30:00.000Z"Python Example
import requests
response = requests.post('https://toolteeno.com/api/unix-timestamp', json={
'mode': 'toTimestamp',
'input': '2024-01-15T10:30:00Z',
'timezone': 'UTC'
})
data = response.json()
print(data['output']['timestamp']) # 1705315800Common Use Cases
- Convert API timestamps to readable dates in web applications
- Store dates as Unix timestamps in databases for efficient querying
- Synchronize time across distributed systems and different timezones
- Schedule tasks and cron jobs with precise Unix timestamps
- Debug timestamp-related issues in logs and error reports
- Calculate time differences and durations in applications