■ localtime 함수 : time 함수에서 반환된 실수 값을 이용해 날짜 구하기

----------------------------------------------------------------------------------------------------

import time

 

result = time.localtime(time.time())

print(result)

 

[결과]


time.struct_time(tm_year=2017, tm_mon=12, tm_mday=15, tm_hour=13, tm_min=19, tm_sec=36, tm_wday=4, tm_yday=349, tm_isdst=0)

----------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG