How to determine appropriate strftime format from a date string?

后端 未结 4 1062
误落风尘
误落风尘 2020-12-09 08:33

The dateutil parser does a great job of correctly guessing the date and time from a wide variety of sources.

We are processing files in which each file

4条回答
  •  暖寄归人
    2020-12-09 09:00

    You can try dateinfer module. It's pretty nice and deals with all your cases easily. Though if you need more fine control over the code and are ready to write it from scratch, regex does look like the best option.

提交回复
热议问题