Could not resist and ported the WordPress TimeSince plugin to perl and added it to the
BlogPlugin.
The original TimeSince WP plugin was only able to display a time diff as at most
two expressions: ``1day, 2hours ago'' or ``1 week ago''. It displays only one time expression
if the difference does not occure in two
adjacent time units. Time units are
year, month, week, day, hour, minute. If a time interval differs in week and hour
the TimeSince WP plugin will only display the week difference and
not the hours
as week and hour are not adjacent. Fixed that in the TIMESINCE tag for TWiki.
And added a parameter to specify how accurate the diff should be displayed in terms
of number of units. So a TIMESINCE{units="3"} will display the topic age using
three time expressions to get it accurate. TIMESINCE will also display seconds and wont
stop at the minutes level. There's a parameter to specify the string to be displayed
if the time interval is zero: TIMESINCE{from="dateA" to="dateB" null="immediate"} will
display ``immediate'' of dateA equals dateB. dateA and dateB can be expressed in a
format that TWiki's parseTime() understands and need not to be epoch seconds as in
the original plugin.
Anyway you might have noticed it already. It is appearing all over the blog now.
Note, that comments are tagged ``SomeGuy replied xyz minutes later'', that is
diffing the time of the commented and the commenting posting.