[issue40236] datetime.datetime.strptime get day error

2020-04-09 Thread zhanying
zhanying added the comment: i read the source code, in this part def _calc_julian_from_U_or_W(year, week_of_year, day_of_week, week_starts_Mon): """Calculate the Julian day based on the year, week of the year, and day of the week, with week_start_day representing whether

[issue40236] datetime.datetime.strptime get day error

2020-04-09 Thread zhanying
zhanying added the comment: My platform is this. #python Python 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 19:07:31) [GCC 7.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. At 2020-04-09 20:45:51, "Eric

[issue40236] datetime.datetime.strptime get day error

2020-04-09 Thread zhanying
New submission from zhanying : In [7]: datetime.datetime.strptime("2024-0-3 00:00:00", "%Y-%W-%w %H:%M:%S") Out[7]: datetime.datetime(2024, 1, 3, 0, 0) In [8]: datetime.datetime.strptime("2024-1-3 00:00:00", "%Y-%W-%w %H:%M:%S") Out[8]: datetime.datetim