====== datedifference Plugin ====== ---- plugin ---- description: Display date difference author : Milosz Galazka email : milosz@sleeplessbeastie.eu type : Syntax lastupdate : 2018-04-24 compatible : 2017-02-19 "Frusterick Manners", 2018-04-22 "Greebo" depends : conflicts : similar : countdown tags : date downloadurl: https://gitlab.com/milosz.galazka/datedifference/repository/master/archive.zip bugtracker : https://gitlab.com/milosz.galazka/datedifference/issues sourcerepo : https://gitlab.com/milosz.galazka/datedifference/ donationurl: https://fsfe.org/donate/donate.en.html screenshot_img : ---- ===== About ===== Simple way to display date difference ===== Installation ===== Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually. ===== Examples ===== Date difference between ''2018-01-01 UTC'' and ''2019-01-01 11:00 (Europe/Warsaw)'', without arrow {{datedifference>from=2018-01-01 UTC,to=2019-01-01 11:00 Europe/Warsaw,arrow=no}} 1 year 10 hours Date difference between ''now'' and ''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 between ''now'' and ''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 between ''now'' and ''next monday'' with debug information and arrow {{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 ===== {{rss>https://gitlab.com/milosz.galazka/datedifference/commits/master?format=atom date}} ===== Discussion ===== Please go to [[plugin:datedifference:discussion]] page Have a nice day!