S-IAF
Join ServerSapphire - Imagine a framework
sapphire-support
How can I turn a joinedTimestamp into this Discord Timestamp
CChillihero3/1/2023
The one that automatically shows you like how long ago this timestamp was
CChillihero3/1/2023
Do you have a utility for this?
S2Seren_Modz 213/1/2023
u can import the time function from discord.js
Solution
S2Seren_Modz 213/1/2023
AArarou3/1/2023
<t:<Date>:F>
AArarou3/1/2023
replace <Date> with your valid Unix time stamp
CChillihero3/2/2023
i played around with it a bit and have the following problem
the timestamp
the timestamp
1677687907708
converts to this when using a unix tool, watch the date 2023

CChillihero3/2/2023
But when using it in discord, I get a super wierd date in the future
CChillihero3/2/2023

CChillihero3/2/2023
<t:1677687907708:R>
<t:1677687907:R>
<t:1677687907:R>
KKrish3/2/2023
<t:1677687907:R>
KKrish3/2/2023
divide it by thousand and you are good
CChillihero3/2/2023
why is that
KKrish3/2/2023
Because Unix timestamps includes milliseconds but discord doesn't
CChillihero3/2/2023
and discord sends unix timestamps
KKrish3/2/2023
I am talking about <t:timestamp> notation
CChillihero3/2/2023
this is wierd behaviour lol but ill take it
CChillihero3/2/2023
thanks!