Converting string date to timestamp in python 3.4

前端 未结 1 628
夕颜
夕颜 2020-12-12 04:45

I am trying to convert string date to timestamp in Python as described in the post here. When I run the code examples in the post, I encounter an error. For e.g.:

         


        
相关标签:
1条回答
  • 2020-12-12 04:57

    Thanks to @J.F. Sebastian. I was caught in the name shadowing trap. I made the stupid mistake of naming one of my modules calendar.py. Once I removed this file, everything ran fine. I hope this post is not a waste and that someone may someday find it useful.

    0 讨论(0)
提交回复
热议问题