##############################################################################
# Python From Scratch
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2024
# Site: https://pythonfromscratch.com
#
# File: listing\chapter 09\09.11 - Displaying the date and time components.py
# Description: Displaying the date and time components
##############################################################################
import time
now = time.localtime()
print(f"Year: {now.tm_year}")
print(f"Month: {now.tm_mon}")
print("Day: {now.tm_mday}")
print("Hour: {now.tm_hour}")
print("Minute: {now.tm_min}")
print(f"Second: {now.tm_sec}")
print(f"Day of the week: {now.tm_wday}")
print(f"Day of the year: {now.tm_yday}")
print(f"Daylight saving time: {now.tm_isdst}")