Lab 3 Date and Time

This  code shows the date and time of images.

from datetime import datetime
now = datetime.now()
print now
current_year = now.year
current_month = now.month
current_day =now.day
print now.year
print now.month
print now.day
print str(now.month) + “/” + str(now.day) + “/” + str(now.year) + “/”
current_hour = now.hour
current_miute = now.minute
currentsecound = now.secound

print str(now.month) + “/” + print str(now.day) + “/” + print str(now.year) + “/”
+ str(now.hour) + “:” + str(now.minute) + “:” + str(secound) “:”

Screen Shot 2013-10-17 at 7.42.39 AM

Leave a Reply

Your email address will not be published. Required fields are marked *