You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Template:Timespan

From MafiaWiki
Revision as of 05:36, 12 February 2014 by Toomai (talk | contribs)
Jump to navigation Jump to search

206 days, 22 hours, 37 minutes

Usage

An extremely inefficient way of calculating the length between two datetimes. Used with {{timespan|start|end}}, such as {{timespan|August 14, 2007 8:06:36 pm|March 08, 2008 6:43:56 pm}}. Should be using the trunc or floor function, but somehow this wiki doesn't have that despite having the extension that does. As a result will fail for times greater than 4 years.

To show seconds (default doesn't), use {{timespan|start|end|s}}.