FromUnixTime
FromUnixTime[time] gives a DateObject corresponding to a Unix time specification (seconds since January 1, 1970).
Examples
Convert a Unix timestamp to a date:
FromUnixTime[0]
(* DateObject[{1970, 1, 1, 0, 0, 0}, ...] *)Convert a specific timestamp:
FromUnixTime[1704067200]
(* DateObject[{2024, 1, 1, 0, 0, 0}, ...] *)Get the current time via round-trip:
FromUnixTime[UnixTime[]]
(* DateObject[...] - current date/time *)Please visit the official Wolfram Language Reference for more details.