Category talk:Time

Operations on time
It seems nothing exists to do operations on time (comparing dates and the such). I wrote some quick and dirty code in some templates to help me with that. Just in case this may help somebody, I thought I would share. I needed to compare a YYYY-mm-dd format date to the present timestamp (is that date in the past, in the future, etc...) to get a functional workflow management system with different priorities assigned to different timeboxes.

The base template, used and built upon in different ways, is the following:

In this precise case, I called the template and the call function therefore is , the output being a boolean value.

Rdavout 23:23, 4 August 2009 (UTC) Rdavout 23:41, 4 August 2009 (UTC)

UPDATE: Much more powerful - w:en:Template:DATECOMP2. You have to use a specific date input and lots of Wikipedia templates to get this going, but once they're rolling, powerful time operations are made possible. Rdavout 14:35, 11 August 2009 (UTC)