From: Linus Torvalds Date: Sat, 30 Apr 2005 23:18:11 GMT Subject: Re: Trying to use AUTHOR_DATE Message-ID: In-Reply-To: <20050501005434.2d47131a.froese@gmx.de> On Sun, 1 May 2005, Edgar Toernig wrote: > > > 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