Jak zdobyć znacznik czasu Unixa w Python
import time
time.time() #returns the unix timestamp
Uninterested Unicorn
import time
time.time() #returns the unix timestamp
#get date from unix timestamp
from datetime import date
timestamp = date.fromtimestamp(1326244364)
from datetime import datetime, timedelta
import time
dtime = datetime.now() + timedelta(seconds=3)
unixtime = time.mktime(dtime.timetuple())