Contact: aviboots(AT)netvision.net.il
39,938 questions
51,875 answers
573 users
import time t = time.ctime() lst = t.split() print(lst) ''' run: ['Wed', 'Apr', '21', '06:36:50', '2021'] '''
import time s = time.strftime('%d %m %Y %H %M %S', time.localtime()) lst = s.split(' ') print(lst) ''' run: ['21', '04', '2021', '08', '29', '34'] '''