[issue1799] isodate filter should include seconds

Christian Ebert blacktrash at gmx.net
Mon Aug 17 08:28:20 CDT 2009


* Giorgos Keramidas on Monday, August 17, 2009 at 13:12:13 +0300
> On Sun, 16 Aug 2009 17:18:39 +0000, esskov <mercurial-bugs at selenic.com> wrote:
>> New submission from esskov <esskov at oncable.dk>:
>> 
>> When using the isodate filter, as in -
>> 
>> hg log --template "{date|isodate}\n"
>> 
>> - only hours and minutes are included, the seconds are omitted, e.g.
>> 
>> 2009-08-12 16:05 +0200
>> 
>> I'm not sure if this is intended (i.e. whether this issue is a bug or a
>> feature-request)?  Anyhow, in my application, which knows how to parse ISO
>> dates, the truncated accuracy is undesirable.
> 
> We already have an 'isodatesec' filter that is identical to 'isodate'
> with seconds added as extra:
> 
> changeset:   6328:b6ecaf5b4b92
> branch:      keramida
> user:        Giorgos Keramidas <keramida at ceid.upatras.gr>
> date:        Mon Mar 17 19:17:54 2008 +0200
> summary:     Add an {isodatesec} template, to show seconds too.

Hasn't made it into "hg help templates" yet.

c
-- 
\black\trash movie    _C O W B O Y_  _C A N O E_  _C O M A_
                     Ein deutscher Western/A German Western

         --->> http://www.blacktrash.org/underdogma/ccc.php


More information about the Mercurial-devel mailing list