Re: Evolution date format question



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/>

I wrote a parser for our translation editor[1] recently to recognise
these printf-style formats(to allow it to mark them in red for
translators)

The test output below is the result of me walking the parse tree and
printing out each node :

timf@cuprum[182] more test
This works for %s and '' empty, newline \n or space/\chars
and /gunk or variable conversions like %4$.*3$d or precision specifiers
like %1.234e and can do terminal width
%w.*s replacements !

timf@cuprum[183] run test
file :
words : This works for
conv : %s
words :  and
escape :
otherescape : ''
words :  empty, newline
escape :
slashescape : \n
words :  or space
escape :
otherescape : /\
words : chars and
words : /
words : gunk or variable conversions like 
variableconv : %4$.*3$d
words :  or precision specifiers like
conv : %1.234e
words :  and can do terminal width
conv : %w.*s
words :  replacements !

eof :

	cheers,
			tim


[1] work ongoing on trying to get this out into the real world for you
guys to at least look at, we're getting there - thanks for the patience
so far :-)






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