[Python-hu] timestamp beillesztése

anaxauta at autistici.org anaxauta at autistici.org
2017. Feb. 1., Sze, 10:46:44 EST


> timestamp = datetime.datetime(*(2017,01,30,20,22,51,41608)).isoformat()
timestamp = 
datetime.datetime(*(2017,01,30,20,22,51,41608)).strftime("%Y-%m-%d 
%H:%M:%S.%f")

a továbbiakhoz
többi "format string directive", azaz `%Y`, `%m` és barátaik:
https://docs.python.org/2/library/time.html#time.strftime


További információk a(z) Python-hu levelezőlistáról