Nov-06-2018, 07:05 PM
How to convert a string like”2015-08-15 20:40:00:0000Z” to datetime.pyi format.what is difference between datetime and datetime. Pyi format
Datetime conversion
|
Nov-06-2018, 07:05 PM
How to convert a string like”2015-08-15 20:40:00:0000Z” to datetime.pyi format.what is difference between datetime and datetime. Pyi format
Nov-06-2018, 07:18 PM
You would use datetime.datetime.strptime() to convert it to a datetime.datetime object. You could them output it in whatever format you want using the strftime() method. I have no idea what datetime.pyi format is though.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness. Recommended Tutorials: BBCode, functions, classes, text adventures |
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
TypeError: unsupported operand type(s) for -: 'datetime.datetime' and 'str' | findbikash | 2 | 11,444 |
Sep-18-2019, 08:32 AM Last Post: buran |