Skip to content

Instantly share code, notes, and snippets.

@LeviSnoot
Last active November 19, 2024 20:03
Show Gist options
  • Save LeviSnoot/d9147767abeef2f770e9ddcd91eb85aa to your computer and use it in GitHub Desktop.
Save LeviSnoot/d9147767abeef2f770e9ddcd91eb85aa to your computer and use it in GitHub Desktop.
Discord Timestamp Syntax

Discord Timestamps

Discord timestamps can be useful for specifying a date/time across multiple users time zones. They work with the Unix Timestamp format and can be posted by regular users as well as bots and applications.

The Epoch Unix Time Stamp Converter is a good way to quickly generate a timestamp. For the examples below I will be using the Time Stamp of 1543392060, which represents November 28th, 2018 at 09:01:00 hours for my local time zone (GMT+0100 Central European Standard Time).

Formatting

Style Input Output (12-hour clock) Output (24-hour clock)
Default <t:1543392060> November 28, 2018 9:01 AM 28 November 2018 09:01
Short Time <t:1543392060:t> 9:01 AM 09:01
Long Time <t:1543392060:T> 9:01:00 AM 09:01:00
Short Date <t:1543392060:d> 11/28/2018 28/11/2018
Long Date <t:1543392060:D> November 28, 2018 28 November 2018
Short Date/Time <t:1543392060:f> November 28, 2018 9:01 AM 28 November 2018 09:01
Long Date/Time <t:1543392060:F> Wednesday, November 28, 2018 9:01 AM Wednesday, 28 November 2018 09:01
Relative Time <t:1543392060:R> 3 years ago 3 years ago

Whether your output is 12-hour or 24-hour depends on your Discord language setting. For example, if you have your Discord language set to English, US 🇺🇸, you will get a 12-hour output. If your Discord language is set to English, UK 🇬🇧, you will get a 24-hour output.

Sources:

Discord Developer Portal

Dan's Tools

READ BEFORE COMMENTING

I realize this has become the first search result on google when you search "Discord Timestamps" so I understand all kinds of users coming here with questions.

However, I am just a newbie dev and not affiliated with Discord in any way. I suggest asking your question in the Official Discord Developer Server if you're a developer or looking over the Discord documentation.

If you're a regular Discord user looking to generate a timestamp, sesh.fyi has a purpose-built tool for that which is probably exactly what you're looking for.

@alexpvpmindustry
Copy link

wow! perfect gist for our servers! thanks for the contribution!

@vcarl
Copy link

vcarl commented Oct 23, 2023

I wrote a tool to make it a little easier to create these timestamps 😁
https://www.discordtimestamps.com/
And repo: http://github.com/vcarl/discord-timestamps (Next.js/Vercel, next was def overkill but hey easy project setup/hosting)

@MetaBlue2000
Copy link

Nice ! Thx for your help !

@hadeshe93
Copy link

hadeshe93 commented Mar 27, 2024

Nice! Also found https://discordtimestampsgenerator.com/ for convenience.

@webceoboy
Copy link

webceoboy commented Mar 30, 2024

@Buggem
Copy link

Buggem commented Apr 23, 2024

JavaScript code that works to generate a discord timestamp (snippet)

console.log(`Last edited: <t:${new Date().getTime().toString().slice(0,-3)}:R>`)

@Bewenben
Copy link

If I use this timestamp <t:1685660400:R>, it will be shown in 2 months ago but can I make it show in days ago format?

@hr98w
Copy link

hr98w commented Jul 1, 2024

I also created a convinent tool for this purpose - discordts

@Buggem
Copy link

Buggem commented Jul 3, 2024

I also created a convinent tool for this purpose - discordts

Open source it

@hr98w
Copy link

hr98w commented Jul 31, 2024

I also created a convinent tool for this purpose - discordts

Open source it

Yes sir, https://github.com/hr98w/discordts

@SohamTilekar
Copy link

How Can I Set the Relative Time to me, like How can I say my 12:30 is your ... .

@LeviSnoot
Copy link
Author

How Can I Set the Relative Time to me, like How can I say my 12:30 is your ... .

If the timestamp you send matches your time zone it will match the time zone of everyone else who sees it, that's the whole idea 🙂

@Buggem
Copy link

Buggem commented Aug 2, 2024

I also created a convinent tool for this purpose - discordts

Open source it

Yes sir, https://github.com/hr98w/discordts

brilliant thanks

@itsvijaysingh
Copy link

PfpFinder also has an easy-to-use Discord timestamp generator! Good for syncing events across different time zones.

@yestool
Copy link

yestool commented Nov 9, 2024

TimeStamp also has an easy-to-use Discord timestamp generator!

@focusto
Copy link

focusto commented Nov 19, 2024

I found another similar website. CalculatorPro also has an easy-to-use Discord timestamp generator!

@Buggem
Copy link

Buggem commented Nov 19, 2024

wait hang on are the 3 people above me bots? "[website] also has an easy to use Discord timestamp generator"

@sharkk2
Copy link

sharkk2 commented Nov 19, 2024

probably

wait hang on are the 3 people above me bots? "[website] also has an easy to use Discord timestamp generator"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment