Strange time display

Brodie Rao dackze at gmail.com
Tue Dec 9 18:15:07 UTC 2008


Those are Unix timestamps. Using the date filter will give you formatted dates:

$ hg log --template '{date|date}\n' | head
Tue Dec 02 13:06:18 2008 -0600
Tue Dec 02 13:06:17 2008 -0600
Tue Dec 02 13:05:40 2008 -0600
Tue Dec 02 19:36:43 2008 +0100
Mon Dec 01 10:45:22 2008 -0500
Tue Dec 02 10:13:52 2008 -0600
Wed Nov 26 22:58:07 2008 +0100
Tue Dec 02 16:46:45 2008 +0100
Wed Nov 26 08:58:31 2008 -0500
Mon Dec 01 20:10:02 2008 -0800

The HG book has more information on templating:
http://hgbook.red-bean.com/hgbookch11.html. Other relevant filters
include age, hgdate, isodate, rfc822date, and shortdate.

On Tue, Dec 9, 2008 at 12:42 PM, Alpár Jüttner <alpar at cs.elte.hu> wrote:
> Hi,
>
> It this the right behavior of the {date} template keyword? Or just a
> bug?
>
> $ hg log --template '{date}\n'|head
> 1228751240.00
> 1228730799.0-3600
> 1228739340.00
> 1228749484.00
> 1228482616.00
> 1228473512.00
> 1228432967.0-3600
> 1228310602.0-3600
> 1228232002.00
> 1228079212.0-3600
> $ hg --version
> Mercurial Distributed SCM (version 1.1)
> [...]
>
>
> Best regards,
> Alpar
>
>
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>




More information about the Mercurial mailing list