파이썬(Python)에서 현재 시간 표시

  • helloworld
    (stdio.h)
  • helloworld's Avatar 이 글의 작성자
  • Offline
  • Junior
  • Junior
더보기
22 Aug 2017 16:55 - 22 Aug 2017 16:57 #2684 작성자: helloworld
helloworld 님의 글: 파이썬(Python)에서 현재 시간 표시
import time

thisTime1=time.strftime("%Y-%m-%d")
thisTime2=time.strftime("%H:%M:%S")
thisTime3=time.strftime("%I:%M:%S")

print(thisTime1)
print(thisTime2)
print(thisTime3)

결과

2017-08-22
16:55:53
04:55:53
Time to create page: 0.050 seconds
Powered by Kunena Forum