반응형 시간변환1 [Python/파이썬] 파이썬 시간변환 import time curTime = time.time() cTime = time.ctime(curTime) gmTime = time.gmtime(curTime) mkTime = time.mktime(gmTime) print "Second :", curTime print "DateTime :", cTime print "TimeStruct :", gmTime print "TimeStruct To Second :", mkTime 결과 Second : 1447998891.9 DateTime : Fri Nov 20 14:54:51 2015 TimeStruct : time.struct_time(tm_year=2015, tm_mon=11, tm_mday=20, tm_hour=5, tm_min=54, tm_sec=.. 2023. 3. 7. 이전 1 다음 반응형