Discord Timestamps
approvedby Erika Gozar
Displays discord timestamps in read mode as they would appear in Discord.
Discord Timestamps
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 code blocks under Settings → Discord Timestamps → Convert code blocks.
Appearance
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.
Insert timestamp
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 in multiple formats. After you select a format, it inserts the timestamp it into your note at your cursor’s location.
Time zone support
Inserting timestamps supports specifying a time zone other than your local time zone for the timestamps to use.
- The chosen date and time will use the selected time zone when generating timestamps.
- Reading mode will still display all timestamps in your local time.
- You can manually specify your local time zone under Settings → Discord Timestamps → Local time zone
Timestamp history
When inserting a timestamp, there is an option to reuse timestamps from your recent history prior to selecting a format.
- The number of timestamps stored in your recent history can be adjusted under Settings → Discord Timestamps → History size.
Installation
Obsidian Marketplace
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.
BRAT
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-timestampsinto the input field and select Add Plugin.
Manual installation
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.
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.