Answers for "call a function based on current day python"

2

python get time of day

from datetime import datetime

now = datetime.now()

current_time = now.strftime("%H:%M:%S")
print("Current Time =", current_time)
Posted by: Guest on July-25-2021
4

python date get day

import datetime
dt = datetime.datetime.today()
year = dt.year
month = dt.month
day = dt.day
Posted by: Guest on December-18-2020

Code answers related to "call a function based on current day python"

Python Answers by Framework

Browse Popular Code Answers by Language