-2
import time
timestr = time.strftime("%Y/%m/%d-%H:%M")
print timestr

When I run this code it comes out with 2015/10/27-20:36 but how would I make the time 8:36 instead

1 Answers1

1

timestr = time.strftime("%Y/%m/%d-%I:%M")

fahad
  • 2,999
  • 3
  • 17
  • 20