timestampinfo.fr
Tools & documentation

TIME DOCUMENTATION

Convert a timestamp in six languages

Short examples that convert the same instant to UTC.

In your code

Browse guides
// Unix seconds → UTC date
new Date(1711972800 * 1000).toISOString();
// "2024-04-01T12:00:00.000Z"
Convert to UTC • Unix seconds

A shared example for comparison

All examples convert 1711972800 seconds to April 1, 2024 at 12:00:00 UTC. Check the unit supplied by your API before copying an example.

Explore each language

Go: choose Unix or UnixMilli

time.Unix(seconds, nanos) accepts seconds and a nanosecond remainder. time.UnixMilli(ms) expects milliseconds. Call UTC() before formatting to get an explicit UTC representation.

Bash: distinguish Linux from macOS

GNU date accepts -d @timestamp. The BSD version on macOS uses -r timestamp. The subsecond format %N is not portable between these commands.

Go — time · GNU date

English version published September 26, 2026.