Spaces:
Runtime error
Runtime error
File size: 275 Bytes
3992084 |
1 2 3 4 5 6 7 8 9 10 11 |
from datetime import datetime
dt = datetime.now()
print(dt)
print(dt.strftime('%a %d-%m-%Y'))
print(dt.strftime('%a %d/%m/%Y'))
print(dt.strftime('%a %d/%m/%y'))
print(dt.strftime('%A %d-%m-%Y, %H:%M:%S'))
print(dt.strftime('%X %x'))
print(dt.strftime('%Y-%m-%d_%H:%M:%S'))
|