Relative for countdowns
Format R shows "in 2 hours" or "5 minutes ago" and updates itself. Ideal for event starts and announcements.
Pick a date and time and copy the matching Discord timestamp. Discord automatically converts the time to every reader's time zone and language – ideal for events, maintenance and server restarts.
A Discord timestamp has the form <t:UNIX-TIME:FORMAT>, for example <t:1798761600:R>. Unix time counts the seconds since 1 January 1970 (UTC); the letter at the end sets the display style. Discord shows every reader the time in their own time zone and language.
That lets you announce events, maintenance windows or server restarts in international communities without converting time zones. Without a letter, Discord uses format f (date with time).
| Format | Code | Display |
|---|---|---|
| t | <t:…:t> | short time |
| T | <t:…:T> | time with seconds |
| d | <t:…:d> | short date |
| D | <t:…:D> | long date |
| f | <t:…:f> | date and time (default) |
| F | <t:…:F> | with weekday |
| R | <t:…:R> | relative, e.g. "in 3 hours" |
Format R shows "in 2 hours" or "5 minutes ago" and updates itself. Ideal for event starts and announcements.
In JavaScript you get Unix time with Math.floor(Date.now() / 1000), in Python with int(time.time()). discord.js offers the time() function, discord.py the function discord.utils.format_dt().
Timestamps work in normal messages as well as in embed descriptions and field values. It's best to test the display once in a private channel.
The generator takes your local time; Unix time is the same worldwide. Every reader automatically sees the time in their own time zone.
For server maintenance, combining F (exact time) and R (countdown) works well, e.g. "Maintenance on <t:…:F> (<t:…:R>)".
Want your bot to post timestamps automatically? With a boost on the Magic Services Discord you can host it for free with us.
Pick a date and time, copy the code in the format you want and paste it into your message. Discord displays it as formatted time.
Without a format letter, Discord uses format f, i.e. date with time.
Everyone sees the same moment – but in their own time zone and language. That's exactly what timestamps are for.
No. The conversion runs entirely in your browser.
How much RAM does your server need? By software, players, view distance and plugins.
RAM, vCores and storage for your GTA RP server – by slots, scripts and database.
Enter a CIDR, get network address, broadcast, host range and netmask – for IPv4 and IPv6.
Strong random passwords for root, SSH and databases – generated only in your browser.
Practical calculators and generators for game servers, VPS and Discord communities – free, without sign-up and entirely in your browser. Nothing is stored or transmitted.