Comment 1 for bug 799342

Revision history for this message
James Westby (james-w) wrote : Re: [Bug 799342] [NEW] refine {time} substitute

On Sun, 19 Jun 2011 09:50:56 -0000, Adam Reviczky <email address hidden> wrote:
> Public bug reported:
>
> Currently the {time} substitute produces a yyyymmddhhmm format (like:
> 201106190815).
>
> It would be nice if one could define a custom format, like for example the following:
> {time} => 201106190815
> {time:yyyymmdd} => 20110619
> {time:yyyy.mm.dd} => 2011.06.19
> {time:yy.mm.dd} => 11.06.19
> {time:dd.mm.yy} => 19.06.11
>
> The ones that I would need myself are: yyyymmdd (aka no hours and
> minutes)

Does {date} do what you need here?

> and yyyy.mm.dd (separated with dots, no hours and minutes).

Why do you need the form with the dots?

Thanks,

James