On Wed, Mar 24, 2010 at 2:25 AM, MSulchan Darmawan <bleke...@gmail.com> wrote:
> Something like this maybe :
> [[RelativeTime(2010-03-23T22:49:23Z)]]
>
> with result :
> 1 day ago

Hello Sulchan,

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.

-Tyler

-- 
"Injustice is relatively easy to bear; what stings is justice."
     - H.L. Mencken

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Moin-user mailing list
Moin-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/moin-user

Reply via email to