공부
[python] datetime to int `int(datetime.datetime.utcnow().timestamp())`
승가비
2023. 4. 21. 01:34
728x90
https://stackoverflow.com/questions/28154066/how-to-convert-datetime-to-integer-in-python
How to convert datetime to integer in python
How can I convert YYYY-MM-DD hh:mm:ss format to integer in python? for example 2014-02-12 20:51:14 -> to integer. I only know how to convert hh:mm:ss but not yyyy-mm-dd hh:mm:ss def time_to_num(
stackoverflow.com
728x90