This is a plugin for Obsidian (https://obsidian.md).
- 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.
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.
- 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.