Learn Python DATES & TIMES in 6 minutes! 📅

preview_player
Показать описание
#python #pythonprogramming #pythontutorial

import datetime

Рекомендации по теме
Комментарии
Автор

import datetime

date = datetime.date(2025, 1, 2)
today = datetime.date.today()

time = datetime.time(12, 30, 0)
now = datetime.datetime.now()

now = now.strftime("%H:%M:%S %m-%d-%Y")

target_datetime = datetime.datetime(2030, 1, 2, 12, 30, 1)
current_datetime = datetime.datetime.now()

if target_datetime < current_datetime:
print("Target date has passed")
else:
print("Target date has NOT passed")

BroCodez
Автор

you're the best bro!
And subscribed!

AbelFikadu-ltei
Автор

You are the best Youtuber bro, Bro Code❤
Watching from INDIA

MannuYadav-rm
Автор

Code Bro, DON’T QUIT MAKING VIDEOS, PLEASEEEE❤🙏. YOU ARE THE BEST AND UNCHANGEABLE!!

wnrex
Автор

You are the best of all my bros, a great teacher🎉🎉

AreshaBasirSpriha
Автор

NEEDED this great review; was stale and stymied. Thanks. -Geezer

retrothink
Автор

Less
Bro I love your vids but I do hope you don't burn yourself out, you've been going ham these past few days.
Pls do take care of yourself

vuyanitause
Автор

You are the best Youtuber bro, Bro Code❤
Watching from INDIA

MannuYadav-rm