Modifying {isodate} to include seconds?
Matt Mackall
mpm at selenic.com
Mon Mar 17 17:02:29 UTC 2008
On Mon, 2008-03-17 at 17:49 +0200, Giorgos Keramidas wrote:
> I just noticed that {date|isodate} does not include seconds in our
> templater.
>
> $ pwd
> /home/keramida/hg/mercurial/crew/mercurial
> $ fgrep isodate *
> templatefilters.py: "isodate": lambda x: util.datestr(x, '%Y-%m-%d %H:%M %1%2'),
> $
>
> Is it ok to modify this template to include the seconds?
Ugh. That might break stuff. We may need to add an isodatesec.
Alternately, we can come up with a scheme to pass arguments to
formatters, eg:
{date|datefmt(%Y-%m-%d %H:%M:%S %1%2)}
..which will give us a lot more flexibility.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial-devel
mailing list