Strange time display
Alpár Jüttner
alpar at cs.elte.hu
Wed Dec 10 09:35:26 UTC 2008
> Those are Unix timestamps.
No. According to the doc, they should use the internal date format
(hgdate), which is presumably two integers. But what I get is a floating
points plus an integer without any separator between them. My question
was if it is intentional or not.
> Using the date filter will give you formatted dates:
> 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