Is there any macro that has relative time function ? Like the one that
previewed in the [[RecentChanges]], for example "10m ago", etc
Something like this maybe :
with result :
1 day ago
Someone can point me somewhere please ? thank in advance.
claws-mail 3.7.5 @ hardy heron 8.04.4 LTS
y!m : bleketux
On Wed, Mar 24, 2010 at 2:25 AM, MSulchan Darmawan <bleketux@...> wrote:
> Something like this maybe :
> with result :
> 1 day ago
I'm not aware of a ready-made macro that fits your needs. If you want
to write your own here is a starting point:
In Moinmoin 1.9 you can find the relevant code from the RecentChanges
macro at http://hg.moinmo.in/moin/1.9/file/ced05deb11ae/MoinMoin/macro/RecentChanges.py#l98
It illustrates calculating and formatting the "difference" between two
dates in Python.
"Injustice is relatively easy to bear; what stings is justice."
- H.L. Mencken