This is a plugin for Obsidian that displays Discord Timestamps (eg. <t:1734818400:D>
) in reading mode the way they would display in Discord.
As long as this plugin is enabled, it converts those timestamps throughout the entire note when viewing it in reading mode. You can optionally disable converting timestamps in codeblocks under Settings → Discord Timestamps → Convert code blocks.
Just like in Discord, the timestamp will have a colored background to it. If you hover over the timestamp (on desktop) or select the timestamp (on mobile), the full date and time will be displayed.
There is also a command in the Command palette as well as in the editor context menu to insert a timestamp when you are currently editing a note.
After you select a date and time in the modal that opens, it generates timestamps for you to use. Then you just select one, and it inserts it into your note at your cursor’s location.
To install this plugin via the Obsidian Marketplace, perform the following steps:
- Navigate to the Discord Timestamps page by either selecting this link or doing the following:
- Navigate to Settings → Community plugins
- Select Turn on community plugins.
- Select Community plugins → Browse and search for "Discord Timestamps".
- Select Install.
- To enable the plugin, select Enable.
To install this plugin using BRAT, follow these steps:
- Make sure the BRAT plugin is installed in your vault.
- Go to Settings → BRAT → Beta Plugin List → Add Beta Plugin
- Enter
https://github.com/Erallie/discord-timestamps
into the input field and select Add Plugin.
To install this plugin manually, follow these steps:
- Go to the Releases page and find the latest release.
- Download
main.js
,manifest.json
, andstyles.css
. - Go to your Plugins folder (
[vault root]/.obsidian/plugins
) and create a new subfolder calleddiscord-timestamps
. - Move the downloaded files to the new folder.