Tokei is a clock plugin for Obsidian.
- An alternative style is included as a snippet. You can experiment with your own snippets using the provided CSS class for all visible items.
To manually install the plugin, follow these steps:
- Copy
main.js,styles.css, andmanifest.jsonto your Obsidian vault's plugin directory:VaultFolder/.obsidian/plugins/Tokei/. - Optional: Copy
Tokei - compact.cssto your snippet directory.
- After enabling the plugin, you won't see anything initially. To open Tokei, use the "Control/Command + P" shortcut and type "Tokei" and then select the Tokei: Open command.
- Drag the Tokei icon to your preferred location.
- Customize the settings as needed.
- If you want to modify the layout and color schemes, take a look at
styles.cssand create your own snippet to change the colors and layout. - When adding timezones, press Enter after each name or offset entry.
- Offset field accepts either a numeric UTC offset (e.g., 0, +1, -5, +5.5) or an IANA timezone ID (e.g., America/New_York, Europe/London). Using IANA zones automatically handles DST. The field also provides smart suggestions from known timezones—search is forgiving and matches any part of the timezone name (e.g., search "Los" to find "America/Los_Angeles", or "Angeles" to find the same zone).
- Name field is optional. If left blank, Tokei derives the display label from the timezone using your selected Label style (Settings → Tokei → Label style). Default is “City segment” (e.g., "New York" from "America/New_York"). Other options include abbreviation (EST/EDT), full IANA, or UTC offset.
Watch the video below for a visual guide:
2023-07-03_10h54_56.mp4
If you find Tokei useful, consider supporting its development by buying me a coffee:
I would like to express my gratitude to the members of the Discord community who have provided valuable help and support. Thank you very much!
For more information about Obsidian's API, refer to the Obsidian API Documentation.
- Under "Show timezones": all timezone-related controls are grouped and aligned for clarity:
- Timezone Format: controls how times are displayed for zones.
- Label style (blank names): separate dropdown placed between format and the grid; applies when
Nameis left blank and updates immediately. - Timezone settings: the grid to manage entries (Name optional; Offset accepts numeric UTC or IANA zone IDs with suggestions).
- Toggling "Show timezones" hides/shows the Format, Label style, and Grid blocks together to keep the settings tidy.
- Long labels are supported; timezone cards expand to fit content.
