Skip to main content

All 7 Discord Time Codes Explained (Syntax, Examples, Scheduling)

Every Discord time code format explained with copy-paste examples. Learn the angle-bracket syntax, all 7 format letters, and how to coordinate events across time zones.

ByMansone||5 min read

Discord time codes solve a real coordination problem. When you type "3 PM" in a server with members across the US, Europe, and Asia, nobody knows whose 3 PM you mean. A Discord time code converts automatically to each reader's local timezone.

The syntax wraps a Unix timestamp in angle brackets with a format letter. Paste it into any Discord message and every reader sees the time in their own timezone. No plugins or bots required.

Use the timestamp generator to build the code from a date picker instead of calculating Unix time manually.

The 7 Discord time codes

Discord supports seven display styles. Each one is controlled by a single letter after the Unix timestamp.

CodeStyleExample outputBest for
tShort time3:00 PMQuick time reference
TLong time3:00:00 PMPrecise scheduling with seconds
dShort date08/05/2026Date-only references
DLong dateAugust 5, 2026Formal date display
fShort date/timeAugust 5, 2026 3:00 PMEvent announcements (default)
FLong date/timeTuesday, August 5, 2026 3:00 PMDetailed event posts
RRelativein 2 hoursCountdowns and deadlines

The relative format (R) is the most popular for events. It updates in real-time, showing "in 3 hours" before the event and "2 hours ago" after it passes.

The syntax

Every Discord time code follows the same pattern:

<t:UNIX_TIMESTAMP:STYLE>
  • t: tells Discord this is a time code
  • UNIX_TIMESTAMP is the number of seconds since January 1, 1970 UTC (Unix epoch time)
  • STYLE is one of the seven letters above (t, T, d, D, f, F, R)

If you leave out the style letter entirely (<t:1722700200>), Discord defaults to the f format (short date and time).

How to generate a time code

The manual approach: figure out the Unix epoch seconds for your target time, type the syntax, and paste it. Faster approach: use a generator.

  1. Open the timestamp generator
  2. Pick a date and time using the date picker
  3. All seven format codes appear at once
  4. Click the one you need to copy it
  5. Paste it into your Discord message

The generator uses your browser's timezone, so the output matches what you see on your screen. Other users will see the same moment converted to their own timezone. That is the entire point.

Discord countdown timer

The most popular use of time codes is live countdowns. Paste <t:UNIX_TIMESTAMP:R> into a message and it shows a live countdown like "in 3 days" that updates automatically. When the time passes, it switches to "2 hours ago."

No bots needed. No special permissions. Just paste the code and it counts down for every reader in your server.

Combine the relative format with a full date for context:

Event starts <t:1722700200:F>
That's <t:1722700200:R>

The first line shows the full date. The second line shows a live countdown.

Common uses

Raid and event scheduling. Post a tournament start time or stream schedule that adapts to every timezone. No more "is that EST or PST?" questions.

Deadline reminders. "Submissions close <t:1722700200:R>" shows a live countdown that updates automatically.

Moderation logs. Timestamp when an action was taken. The long date/time format (F) includes the day of the week.

Bot output. Community bots can include time code syntax in welcome messages, scheduled reminders, and countdown embeds.

Troubleshooting

Time shows wrong for you. Check your device's timezone setting. The generator converts your local input to UTC-based epoch time. If your device clock says you are in the wrong timezone, the conversion will be off.

Time shows wrong for others but right for you. That is expected behavior. Each reader sees the time converted to their own timezone.

Code shows as raw text. Make sure the angle brackets are standard ASCII < >, not fancy quotes. Copy from the generator to avoid formatting issues.

Past dates work too. You can create time codes for historical events or log entries. Discord renders them the same way regardless of whether the time is in the past or future.

The @time shortcut vs manual syntax

Discord added a built-in @time shortcut that lets you type natural language times. The manual <t:> syntax gives you more control:

  • You can specify the exact format letter
  • It works in bot messages and embed fields
  • You can prepare time codes in advance for scheduled posts
  • You get precision down to the second

For event planning and bot development, the manual syntax is more reliable.

Related tools and guides

Common questions

What are Discord time codes?
Discord time codes are special markdown snippets that display a date or time in each reader's local timezone. The syntax is <t:UNIX_TIMESTAMP:STYLE> where STYLE is one of 7 letters (t, T, d, D, f, F, R). Paste the code into any message and Discord converts it automatically for every viewer.
How many time format codes does Discord have?
Discord has 7 format codes: t (short time like 3:00 PM), T (long time with seconds), d (short date like 08/05/2026), D (long date), f (short date and time, the default), F (long date and time with weekday), and R (relative countdown like 'in 2 hours').
What is a Unix timestamp in Discord?
A Unix timestamp is the number of seconds since January 1, 1970 UTC (also called epoch time). Discord uses this number inside the <t:> syntax to represent an exact moment. Since Unix timestamps are UTC-based, Discord can convert them to any viewer's local timezone.
What is the R format in Discord?
The R format shows a live relative countdown or elapsed time, like 'in 2 hours' or '3 days ago'. It updates automatically in real-time. This is the most popular format for event countdowns, deadline reminders, and stream schedules.
Do Discord time codes work on mobile?
Yes. Discord time codes render on desktop, iOS, Android, and the web app. They display in the viewer's device timezone regardless of platform.
Can I use time codes in Discord bot embeds?
Yes. The time code syntax works in regular messages, bot messages, and embed description fields. Some embed fields that do not render markdown may not display them, but message content and descriptions support it.
What is a Discord countdown timer?
A Discord countdown timer uses the R (relative) format code. Paste <t:UNIX_TIMESTAMP:R> into a message and it shows a live countdown like 'in 3 days' that updates automatically. When the time passes, it switches to 'X hours ago'. No bots needed.
Why does my Discord timestamp show the wrong time?
The most common cause is entering the time in the wrong timezone when generating the Unix value. The underlying number is UTC-based. If your device timezone setting is incorrect, the generated timestamp will be off. Each viewer sees it converted to their own local time, so the source timezone is the only thing that can cause errors.

Topics: Discord, time codes, Unix time, event planning, timezone coordination

Check your setup.

Free browser tools for hardware checks, game settings, and performance testing.

Browse tools