| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <031501c2bb75$72f016a0$f836ba8c@sfdev3> |
| Reply-To: | "Norman Vine" <nhv AT cape DOT com> |
| From: | "Norman Vine" <nhv AT cape DOT com> |
| To: | "Richard Troy" <rtroy AT sciencetools DOT com> |
| Cc: | "Cygwin" <cygwin AT cygwin DOT com> |
| References: | <Pine DOT LNX DOT 4 DOT 33 DOT 0301131738510 DOT 32485-100000 AT denzel DOT in> |
| Subject: | Re: GCC bug with strftime |
| Date: | Mon, 13 Jan 2003 21:34:18 -0500 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
| X-Virus-Scanned: | Cape.Com VirusScan, no known virus found |
Richard Troy writes:
>
> I recently discovered a bug in strftime(). I downloaded a very recent copy
> of cygwin and tried again, but it's still there. So, I'd like to report
> it. I sent mail to the gcc-bugs list but nobody there seems to care, so I
> thought I'd mention it here.
>
> The problem is that this call fails to return an hour:
>
> strftime(IT,key,"%m/%d/%y %l:%M %p", brokentime);
hmmm...
Are you sure that you are not passing a 'el' instead of a capital 'eye'
it is real hard to differentiate in some typefaces
note: python just calls the underlying 'C' strftime() implementation
HTH
Norman
$ python
Python 2.2.2 (#1, Dec 31 2002, 12:24:34)
[GCC 3.2 20020927 (prerelease)] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.strftime("%m/%d/%y %l:%M %p")
'01/13/03 :25 PM'
>>> time.strftime("%m/%d/%y %I:%M %p")
'01/13/03 09:26 PM'
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |