Proposal for custom time string formatting in std.datetime

Jonathan M Davis jmdavisProg at gmx.com
Fri Dec 23 03:04:01 PST 2011


On Friday, December 23, 2011 10:17:00 Stewart Gordon wrote:
> On 23/12/2011 03:55, Jonathan M Davis wrote:
> <snip>
> 
> >> - If you're going to have the ISO week number in the system, it seems
> >> to me you should also have the week-numbering year.  (I've thought
> >> about possibly adding these to my scheme.)
> > 
> > %isoweek and %C2isoweek
> 
> What are you saying?  That the documentation is wrong, and %isoweek emits a
> year, not a week?

%isoweek emits a week. If it's not the week that you mean, then what are you 
talking about? I've obviously misunderstood.

> > Obviously, that needs to be clearer. The denominator is always a
> > multiple of 10. It's what the mpeg-7 standard uses, which is why it's
> > there.
> <snip>
> 
> What's that to do with it?  25000 _is_ a multiple of 10.  And 3/25000
> contains 6 digits, compared to 12/100000's 8.  So the spec reads to the
> effect that %F should generate 3/25000 in that example.

Sorry. I meant power, not multiple. Wrong word. It's always a 1 followed by 
some number of 0s.

- Jonathan M Davis


More information about the Digitalmars-d mailing list