Illustration of a clock next to the current Unix timestamp in seconds and milliseconds

Timestamp Generator

The current Unix timestamp, updating live — plus a converter below. Runs entirely in your browser.

Seconds
Milliseconds


Convert

Enter a Unix timestamp (seconds or milliseconds) or a date/time string.


ℹ️ How this works
  • A pasted number is treated as a timestamp: 13 or more digits means milliseconds, fewer means seconds (10-digit seconds run out around the year 2286, so this is an unambiguous cutoff).
  • A date/time string without an explicit timezone (no Z or +HH:MM) is treated as UTC, not your local time zone — this keeps results consistent between the page and the API.
  • Runs entirely client-side on this page — nothing you type here is ever sent anywhere. The JSON API below is a separate, opt-in endpoint for scripts.
💻 Show API usage examples (cURL)

Current time:

curl -sS https://devops.majbase.com/timestamp-generator/api

Returns {"unix_seconds", "unix_milliseconds", "iso_utc"}.

Convert a timestamp or date:

curl -sS "https://devops.majbase.com/timestamp-generator/api" --data-urlencode 'value=1700000000'

Returns {"mode": "timestamp-to-date"|"date-to-timestamp", "iso_utc", "unix_seconds", "unix_milliseconds", ...}, or {"error": "..."} for unparseable input.

🤖 Use this API as a Claude Skill

Want an AI agent (Claude Code, claude.ai, or anything else that supports the Agent Skills format) to use this tool for you on request? Download the skill below and add it:

⬇️ Download SKILL.md · View raw