
Unix timestamp converter
Calculate unix timestamp converter with clear inputs and assumptions.
Your dates and times stay in your browser and are not stored.
Method and assumptions
Method version 1.0.0 · Updated
Calculate
Formula: Calculate unix timestamp converter with clear inputs and assumptions.
Calculate unix timestamp converter with clear inputs and assumptions.
- value
- Timestamp (seconds)
- date
- ISO 8601 date
- mode
- Conversion
Results are estimates where noted and depend on the entered assumptions.
Calculate with code
These short examples use the same inputs and core calculation as this tool. Adapt validation and formatting to your application.
JavaScript
const seconds = Math.floor(Date.parse("2026-01-01T00:00:00Z") / 1000);
console.log(seconds); // Unix secondsTypeScript
const seconds: number = Math.floor(Date.parse("2026-01-01T00:00:00Z") / 1000);
console.log(seconds);Python
from datetime import datetime, timezone
print(int(datetime(2026,1,1,tzinfo=timezone.utc).timestamp()))Java
System.out.println(java.time.Instant.parse("2026-01-01T00:00:00Z").getEpochSecond());C#
var instant = DateTimeOffset.Parse("2026-01-01T00:00:00Z");
Console.WriteLine(instant.ToUnixTimeSeconds());