Unix Timestamp by Language
Copy-ready code snippets for getting and converting Unix timestamps in your language. Each page covers seconds, milliseconds, and date parsing — no external libraries required where possible.
Timestamp recipes
- Get Unix timestamps in C++ with the standard library.
- Convert dates with Laravel Carbon using explicit time zones.
- Query the last 30 seconds in SQL for your database.
Main epoch converter
Use the homepage for epoch converter, epoch to date, and date to epoch searches
These language guides show how to create Unix timestamps in code. If you need to paste a real timestamp, convert epoch time to date, or generate a Unix value from a calendar date, use the live homepage tools instead.