yuripv a6e075a2c4 strptime: fix parsing of tm_year when both %C and %y appear in the
format string in arbitrary order.  This makes the related test cases in
lib/libc/tests/time (not yet connected to the build) pass.

While here, don't error on negative tm_year value based on the
APPLICATION USAGE in
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/time.h.html
(glibc does the same):

tm_year is a signed value; therefore, years before 1900 may be represented.

Approved by:	re (gjb), kib (mentor)
Differential Revision:	https://reviews.freebsd.org/D17550
2018-10-17 14:51:43 +00:00
..
2017-10-31 00:07:04 +00:00
2018-01-24 14:24:17 +00:00
2017-12-27 21:36:37 +00:00
2018-07-18 21:57:04 +00:00
2018-08-16 14:46:49 +00:00
2018-06-10 02:34:41 +00:00
2018-03-29 19:43:29 +00:00
2018-08-17 04:17:51 +00:00
2018-04-27 13:59:24 +00:00
2018-09-19 07:04:15 +00:00
2018-03-21 14:37:04 +00:00
2018-10-12 05:27:58 +00:00
2018-05-18 06:10:16 +00:00
2018-06-27 19:29:15 +00:00
2018-09-19 07:05:31 +00:00
2018-08-09 20:29:44 +00:00
2018-09-20 09:26:10 +00:00
2018-09-19 07:06:20 +00:00
2018-09-20 09:31:27 +00:00
2018-08-21 01:33:25 +00:00
2018-09-22 13:17:30 +00:00
2018-05-23 01:20:31 +00:00
2018-06-17 18:05:27 +00:00
2018-03-18 03:42:57 +00:00
2018-06-27 19:29:15 +00:00