Source_Code.py

 avatar
unknown
python
5 months ago
444 B
4
Indexable
#Name: Spencer Story
#Date: 12/2/24
#Module: PE#2 HW-DB Module-4
#Course: CIS-115-801

from datetime import datetime

dt = datetime(2020, 11, 4, 14, 53, 0)

print(dt.strftime('%Y/%m/%d %H:%M:%S'))
print(dt.strftime('%y/%B/%d %I:%M:%S %p'))
print(dt.strftime('%a, %Y %b %d'))
print(dt.strftime('%A, %Y %B %d'))
print('Weekday:', dt.strftime('%w'))
print('Day of the year:', dt.strftime('%j'))
print('Week number of the year:', dt.strftime('%U'))
Editor is loading...
Leave a Comment