Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
Get notified when there's activity on this post
Good morning,
Please, how to convert datetime to timestamp in odoov8.
Thanks a lot
I found it:
Here is the answer.
import time
import datetime
s = "2015-05-27 21:44:38"
f = time.mktime(datetime.datetime.strptime(s, "%Y-%m-%d %H:%M:%S").timetuple())
print f
Enjoy it ;)
1. Use the live chat to ask your questions. 2. The operator answers within a few minutes.