public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug time/29461] New: strptime() failed to parse negative %s number of seconds since the Epoch, happily produced by strftime()
@ 2022-08-08 19:29 yann at droneaud dot fr
  2022-08-08 19:58 ` [Bug time/29461] " sam at gentoo dot org
  0 siblings, 1 reply; 2+ messages in thread
From: yann at droneaud dot fr @ 2022-08-08 19:29 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29461

            Bug ID: 29461
           Summary: strptime() failed to parse negative %s number of
                    seconds since the Epoch, happily produced by
                    strftime()
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: time
          Assignee: unassigned at sourceware dot org
          Reporter: yann at droneaud dot fr
  Target Milestone: ---

Created attachment 14267
  --> https://sourceware.org/bugzilla/attachment.cgi?id=14267&action=edit
strftime(), strptime() %s format test with negative timestamp

strftime(,"%s",) can produce negative number of seconds since the Epoch for
date before the 1970-01-01, but strptime() refuses to parse negative numbers,
thus is unable to parse the string formatted by strftime().

For example, the attached test case reports the following:

    strftime() produced "-3600"
    strptime() failed to parse "-3600"

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug time/29461] strptime() failed to parse negative %s number of seconds since the Epoch, happily produced by strftime()
  2022-08-08 19:29 [Bug time/29461] New: strptime() failed to parse negative %s number of seconds since the Epoch, happily produced by strftime() yann at droneaud dot fr
@ 2022-08-08 19:58 ` sam at gentoo dot org
  0 siblings, 0 replies; 2+ messages in thread
From: sam at gentoo dot org @ 2022-08-08 19:58 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=29461

Sam James <sam at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sam at gentoo dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-08 19:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-08 19:29 [Bug time/29461] New: strptime() failed to parse negative %s number of seconds since the Epoch, happily produced by strftime() yann at droneaud dot fr
2022-08-08 19:58 ` [Bug time/29461] " sam at gentoo dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).