marca de tiempo de impresión de Python
import datetime
ts = datetime.datetime.now().timestamp()
Plain Partridge
import datetime
ts = datetime.datetime.now().timestamp()
from datetime import datetime
timestamp = 1586507536367
dt_object = datetime.fromtimestamp(timestamp)
import time
timestamp = 1547281745
datetime = time.strftime('%A, %Y-%m-%d %H:%M:%S', time.localtime(timestamp))
print(datetime)
from datetime import datetime
datetime.now(tz=None)
import time
ts = time.time()
// OR
import datetime;
ct = datetime.datetime.now()
ts = ct.timestamp()
import datetime
from datetime import datetime
timestamp = pd.Timestamp('2020-5-23')