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?
SSeren_Modz 213/1/2023
u can import the time function from discord.js
Solution
SSeren_Modz 213/1/2023
Discord.js
Discord.js is a powerful node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.
AArarou3/1/2023
<t:<Date>:F> 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 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>
KKrish3/2/2023
<t:1677687907:R> 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 thanks!

Looking for more? Join the community!

Want results from more Discord servers?
Add your server
Recommended Posts
How to use `@sapphire/shapeshift ` dateValid & stringRegexI have a slash command that needs to take in a date input in the format of `YYYY-MM-DD`. I want to Access extended sapphire clientFollowing usecase: I extended the sapphire client in order to create custom collections etc. Is thVersion mismatch between Sapphire and dapi-typesHi, I was updating my dependencies when I encountered Discord.js' dapi-types error. I copy/pasted thWhats the syntax to require Permission X AND Y OR Z when using requiredUserPermissionswhen using `requiredUserPermissions`. Its an array so Im not sureGetting modalSubmit error over the weekendDid discord change something???How to use windows env variables using skyra env utilitiesi am trying to use CD for hosting and i have env variables set on windows, how do i access them withPattern for fetching all registered slash commandsI have some slash commands and some with subcommands and and want to introduce a `/help` slash comminteraction.showModal not workinginteraction.showModal doesnt work, I dont know why. Code: ``` this.container.logger.debug("Start EdPrecondition with Slash CommandHow to report precondition failure w/ clash command? If I use `this.error({ message: 'error' });` iHow to use skyra env utilities with the cli generated project?I want to use env variables to store my mongo uri, but due to skyra utilities being their i cant useHow to get the current channel a slash command was used inI took a look at the following post https://discord.com/channels/737141877803057244/1061609301556346Preventing Commands in DMsHow do you prevent commands from being used in DMs? Message commands.autoModerationActionExecution EventDoes Sapphire not emit the Discord.js `autoModerationActionExecution` event? The following code doeHelp canceling a commandHere the code I have for a simple reminder command.https://pastebin.com/crRSdjEn. It works but id liHow to check if the bot has Permission X inside of the server? For example VIEW_AUDIT_LOGIn a listenerWhat parameter do I pass to the run method in my GuildCreate listener?Problem with this.container.stores.get().get();Code:InteractionCreate fileCan I easily create a listener for `interactionCreate`? I need it for some UI Abilities, and I am noHow to Create Threads?I dont get how to create threads programmatically. Please helpCommand infodoes sapphire have a built in command info funtions so we can get for example the aliases of a comma