import os
import time
filestat = os.stat('\\\\101.881.166.231\\Cruisecontrol\\Prevent\\Source\\cambr
ia.zip')
print time.strftime('%y.%m.%d', time.localtime(filestat.st_mtime))
# 접근한 날짜 : st_atime
# 수정한 날짜 : st_mtime
# 만든 날짜 : st_ctime
출력 결과 : 09.10.02
import time
filestat = os.stat('\\\\101.881.166.231\\Cruisecontrol\\Prevent\\Source\\cambr
ia.zip')
print time.strftime('%y.%m.%d', time.localtime(filestat.st_mtime))
# 접근한 날짜 : st_atime
# 수정한 날짜 : st_mtime
# 만든 날짜 : st_ctime
출력 결과 : 09.10.02
'컴퓨터 > Python' 카테고리의 다른 글
Python] 다른 프로그램 실행 (0) | 2010.01.19 |
---|---|
Python] Linux에서 Python 설치 (0) | 2009.10.21 |
Python]Get child directory (0) | 2009.10.09 |
Python] 오늘의 날짜 시간 구하기 (0) | 2009.10.07 |
Python] SSH connection using Paramiko on Windows OS (0) | 2009.09.13 |