Good morning,
Please, how to convert datetime to timestamp in odoov8.
Thanks a lot
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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 ;)
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Aug 23
|
12546 | ||
change password
Solved
|
|
1
Aug 23
|
11041 | |
|
1
Jul 23
|
7222 | ||
|
4
Apr 23
|
8676 | ||
|
2
Feb 23
|
17590 |