DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:sincetil

sincetil Plugin

Compatible with DokuWiki

  • 2018-04-22 "Greebo" yes
  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" unknown
  • 2015-08-10 "Detritus" unknown

plugin Shows remaining time until or how long since a specified date and time

Last updated on
2019-05-06
Provides
Syntax
Repository
Source

Tagged with date

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/Usage

You will probably want to avoid caching the page:

~~NOCACHE~~

Then the date/time goes in a pair of <sincetil></sincetil> tags.

Then you just want the value in the form: yyyy-mm-dd hh:mm:ss

For example:

  • In the future
    • <sincetil>2023-05-07 13:00:10</sincetil>
    • <sincetil>2019-07-07 13:00:10</sincetil>
    • <sincetil>2019-05-13 13:00:10</sincetil>
    • <sincetil>2019-05-07 21:00:10</sincetil>
    • <sincetil>2019-05-07 11:50:10</sincetil>
    • <sincetil>2019-05-07 11:08:59</sincetil>
  • In the past
    • <sincetil>2016-05-05 13:00:10</sincetil>
    • <sincetil>2019-01-05 13:00:10</sincetil>
    • <sincetil>2019-05-01 13:00:10</sincetil>
    • <sincetil>2019-05-07 09:00:10</sincetil>
    • <sincetil>2019-05-07 11:00:10</sincetil>
    • <sincetil>2019-05-07 11:08:01</sincetil>

Change Log

  • 2019-05-06
    • Initial release

Discussion

Please bear in mind that this is my second attempt at a plugin. I can see a few places that I've not done things optimally and will continue to improve it. I'd welcome any constructive criticism.

plugin/sincetil.txt · Last modified: 2019-05-07 12:27 by pigzag