This is an old revision of the document!
Table of Contents
datedifference Plugin
Compatible with DokuWiki
2017-02-19 "Frusterick Manners", 2018-04-22 "Greebo"
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to countdown
About
Simple way to display date difference
Installation
Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.
Examples
Date difference from 2018-01-01 to 2019-01-01 11:00 (Europe/Warsaw), without arrow
{{datedifference>from=2018-01-01,to=2019-01-01 11:00 Europe/Warsaw}}
1 year 10 hours
Date difference from now to 2019-01-01, with arrow (↑ when target date is in the future, ↓ when target date is in the past)
{{datedifference>to=2019-01-01}}
8 months 7 days 3 hours 26 minutes ↑
Date difference from now to 2018-01-01 with defined message when target date is reached
{{datedifference>to=2018-01-01,finmsg=Target date reached}}
Target date reached
Date difference from now to next monday
{{datedifference>to=next monday,debug=yes}}
5 days 3 hours 17 minutes (2018-04-24T20:42:13+00:00 → 2018-04-30T00:00:00+00:00) ↑
FAQ
Remember to use NOCACHE directive.
~~NOCACHE~~
Change Log
- Added missing spaces (2018-04-24 23:02)
- Fixed singular form for month, day and hour (2018-04-24 23:01)
- Plugin date fix (2018-04-24 22:26)
- Initial commit (2018-04-24 22:24)
Discussion
Please go to discussion page
Have a nice day!