From: Jason Green Newsgroups: comp.os.msdos.djgpp Subject: Re: strftime: Need Help with Time Offsets Date: Sat, 23 Dec 2000 21:13:45 +0000 Organization: Customer of Energis Squared Lines: 34 Message-ID: <0nt94tkh5ptfohe9414da1u3geja7ml4vm@4ax.com> References: <1a524t0tk28cmv3vqfq26tooe0qeikhgm5 AT 4ax DOT com> <2561-Fri22Dec2000120234+0200-eliz AT is DOT elta DOT co DOT il> <1190-Fri22Dec2000173248+0200-eliz AT is DOT elta DOT co DOT il> NNTP-Posting-Host: modem-12.amantadine.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: newsg3.svr.pol.co.uk 977606047 14637 62.136.77.12 (23 Dec 2000 21:14:07 GMT) NNTP-Posting-Date: 23 Dec 2000 21:14:07 GMT X-Complaints-To: abuse AT theplanet DOT net X-Newsreader: Forte Agent 1.7/32.534 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Eli Zaretskii" wrote: > > In respect of %z, what needs to be done to make strftime() compliant > > with current standards? > > It should work like in glibc. > > But C99 defines about a dozen more conversion specifiers which aren't > supported by DJGPP right now. It would be nice to add them as well. I agree, but this all takes time. If %z is fixed now shouldn't it go in? Actually, I did also start work on implementing some of the missing features. A couple of these, such as %P, are complete no-brainers and are easily added. Others require some crazy date maths which is just taking too long to figure out. If someone has the time to figure out the calculation for week numbers (%V) from any supplied date, that would help. I have a template function for this if anyone is interested. FWIW, I only see about 6 conversion specifiers that are missing from DJGPP or do not do what they are supposed to, unless you want to count %O and %E modifiers. None of these seem particularly critical, at least no more so than %z. Which major new functionality from C99 are you refering to? Note that someone else has already posted a patch which reports to add locale support to DJGPP. BTW, if I fill a struct tm with values for 0/Jan/YYYY, then call mktime(), it should be modified to 31/Dec/(YYYY-1), right? This isn't happening.