How to get current timestamp in string format in python code example Example: python get timestamp of today import datetime; ts = datetime.datetime.now().timestamp()