Re: Evolution date format question



Ar 20/01/2004 am 13:45, ysgrifennodd Tim Foster:
> On Tue, 2004-01-20 at 13:25, T??r??k G??bor (Gab??) wrote:
> > > But I have no idea what %%+05d means...
> > 
> > As I know it's the difference between your timezone and GMT displaying
> > it in a fixed-length way.
> > 
> > e.g. Mon, 19 Jan 2004 22:56:27 +0100
> 
> Hmm, shouldn't that be "%+05d" then, not "%%+05d" - that's how it works
> according to printf(3C) on Solaris anyway <shrug/>

This is my guess: the "%%+05d" is turned into "%+05d" by strftime, which
is then replaced by the time difference with a printf-type function. %d
means day-of-month to strftime, whereas is means decimal integer to
printf-type functions -- the "%%" is to stop strftime from interpreting
it so it can be interpreted by another function later. I don't think
this indirection is something which is viable to recognize in tools -- you
have to support "%%" as representing "%", but going beyond that would be
troublesome.

-- 
Dafydd



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]