dateutils icon indicating copy to clipboard operation
dateutils copied to clipboard

dateutils.dconv might have a bug with converting non-24 hr times

Open kihiukiragu opened this issue 6 years ago • 1 comments
trafficstars

The following: dateutils.dconv -i '%d-%b-%y %I.%M.%S.%N %p' '26-JAN-19 12.02.23.823355000 AM’

Returns ‘2019-01-26T12:02:23’ but should return ‘2019-01-26T00:02:23’

kihiukiragu avatar Feb 01 '19 22:02 kihiukiragu

Hi kihiukiragu, thanks for the report. However, in the current release (0.4.5) this very example seems to report the correct value:

$ dateconv -i '%d-%b-%y %I.%M.%S.%N %p' '26-JAN-19 12.02.23.823355000 AM'                                            
2019-01-26T00:02:23

hroptatyr avatar Feb 04 '19 08:02 hroptatyr