Re: Trying to use AUTHOR_DATE
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Apr 30, 2005, 23:18 UTC
- Message-ID
- <Pine.LNX.4.58.0504301607570.2296@ppc970.osdl.org>
- In-Reply-To
- <20050501005434.2d47131a.froese@gmx.de>
On Sun, 1 May 2005, Edgar Toernig wrote:
Show 5 quoted lines
> > > I'll probably tweak it a bit more (make "no timezone means local > > timezone", for example, rather than UTC like it is now). > > Here's my try on that. But whether it works everywhere ...
I already did that part.
> Btw, your %+03d%02d printf gave wrong results for i.e. -0130 (-01-30).
Dang. Oh, well. That's what I get for not testing.
I don't much like that "%+05s" trick either, since that one also depends on the direction of rounding for negative division (it just gets it right for the normal case, and I guess C90 finally specified it precisely).
Let's just do unsigned arithmetic and check the sign specially. I already did that on input, just not on output.
Linus