python how to get timestamp of now code example Example: python get timestamp of today import datetime; ts = datetime.datetime.now().timestamp()