mirror of
https://github.com/rasbt/python_reference.git
synced 2025-02-20 15:22:08 +00:00
date time
This commit is contained in:
parent
9d26a4f2c6
commit
d10e55daf8
13
date_time.py
Normal file
13
date_time.py
Normal 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
0
pil_image_processing.py
Normal file
Loading…
Reference in New Issue
Block a user