This commit is contained in:
Pavel_Duron 2022-11-03 18:18:56 +10:00
parent 804bea284a
commit 63b5d0809b

2
bot.py
View File

@ -17,7 +17,7 @@ dp = Dispatcher(bot)
@dp.message_handler(commands=["time"]) @dp.message_handler(commands=["time"])
async def send_time(message: types.Message): async def send_time(message: types.Message):
cd = datetime.datetime.now().strftime("%d/%m/%Y") cd = datetime.datetime.now().strftime("%d/%m/%Y")
ct = datetime.datetime.now().strftime('%H:%M') ct = datetime.datetime.now()
ct = ct+datetime.timedelta(hours=14) ct = ct+datetime.timedelta(hours=14)
ct2 = ct.strftime('%H:%M') ct2 = ct.strftime('%H:%M')
# new_year = datetime.date(2022, 12, 31) # new_year = datetime.date(2022, 12, 31)