SyntaxFix
Write A Post
Hire A Developer
Questions
You can use arrow
from datetime import datetime import arrow now = datetime.utcnow() print(arrow.get(now).to('local').format()) # '2018-04-04 15:59:24+02:00'
you can feed arrow.get() with anything. timestamp, iso string etc
arrow.get()