Python: Print waktu
Revision as of 19:06, 28 November 2015 by Onnowpurbo (talk | contribs)
Time
Source
import datetime print datetime.datetime.now()
Jika dijalankan akan keluar kira-kira
2015-11-28 09:12:03.465258
Time Stamp
import time import datetime
n = datetime.datetime.now() unix_time = time.mktime(n.timetuple())