date time

This commit is contained in:
rasbt 2014-03-06 10:54:02 -05:00
parent 9d26a4f2c6
commit d10e55daf8
2 changed files with 13 additions and 0 deletions

13
date_time.py Normal file
View File

@ -0,0 +1,13 @@
# Sebastian Raschka, 03/2014
# Date and Time in Python
import time
# print time HOURS:MINUTES:SECONDS
# e.g., '10:50:58'
print(time.strftime("%H:%M:%S"))
# print current date DAY:MONTH:YEAR
# e.g., '06/03/2014'
print(time.strftime("%d/%m/%Y"))

0
pil_image_processing.py Normal file
View File