Linux time_t to datetime

A Unix time_t is the number of seconds elapsed since 1970-01-01 00:00:00 UTC (the “epoch”). Convert in either direction below.

Unix time_t → Date

Enter seconds since the epoch (e.g. 1700000000)

date will appear here

Date → Unix time_t

Pick a date & time (interpreted in your local time zone)

time_t will appear here

Current time_t

The Unix timestamp for right now

click the button