TimeDiff
approvedby Grzegorz Dominiczak
Calculate and displays diff in hours and minutes between two dates in `timediff` Markdown block.
★ 10 stars↓ 5,617 downloadsUpdated 1mo agoMIT
Obsidian TimeDiff Plugin
This is a plugin for Obsidian (https://obsidian.md).
How to use
- Calculates time diffs in
timediffmarkdown block
```timediff
11:10 - 12:20
12:38 - 14:00
23:20 - 23:59
00:00 - 00:55
```
In reading mode diffs between the dates will be parsed and presented in readable format. Sum of diffs will be presented at the bottom of the block.
Commands
TimeDiff plugin - Show total time diff count in current filecommand, which calculates total sum of alltimediffblocks on the page.TimeDiff plugin - Insert timediff blockcommand, which insertstimediffblock in current cursor position.TimeDiff plugin - Insert current timecommand, which inserts current time in current cursor position.
Local development
- Clone your repo to a local development folder. For convenience, you can place this folder in your
.obsidian/plugins/your-plugin-namefolder. - Install NodeJS, then run
yarnin the command line under your repo folder. - Run
yarn run devto compile your plugin frommain.tstomain.js. - Make changes to
main.ts(or create new.tsfiles). Those changes should be automatically compiled intomain.js. - Reload Obsidian to load the new version of your plugin.
- Enable plugin in settings window.
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.