from datetime import datetime
Output: 2016-11-21 11:21:36.471784
The time has 5:30 loss. So I solved temporarily
print datetime.now() + timedelta(hours=5.5)
Is it good method?
Why this variation ?
Thanks in advance
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 11/21/16, 6:31 AM|
|Seen: 180 times|
|Last updated: 11/21/16, 11:24 PM|