This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] strftime %I fix


Hi,

the %I parameter produced a different result than the %H parameter.
For instance %H gave "14:30", while %I produced "3:30" ( 14%12 + 1 ==3 ). The attached patch fixes this, so %I will now correctly produce "2:30". It now does basically the same as the FreeBSD implementation.

Please apply to eCos cvs.

Bye
Alex

Attachment: ChangeLog.diff
Description: ChangeLog.diff

Attachment: strftime.cxx.diff
Description: strftime.cxx.diff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]