From 804bea284a80d4ab5c6239075f15089d12886497 Mon Sep 17 00:00:00 2001 From: Pavel_Duron Date: Thu, 3 Nov 2022 18:14:30 +1000 Subject: [PATCH] =?UTF-8?q?=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=B2=D1=80?= =?UTF-8?q?=D0=B5=D0=BC=D0=B5=D0=BD=D0=B8=20=D0=B8=20=D1=84=D0=BE=D1=80?= =?UTF-8?q?=D0=BC=D0=B0=D1=82=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bot.py b/bot.py index b95dd7a..de8f16d 100644 --- a/bot.py +++ b/bot.py @@ -16,11 +16,12 @@ dp = Dispatcher(bot) @dp.message_handler(commands=["time"]) async def send_time(message: types.Message): - current_datatime = datetime.datetime.now() - # current_data = datatime.date() - # current_time = datatime.time() + cd = datetime.datetime.now().strftime("%d/%m/%Y") + ct = datetime.datetime.now().strftime('%H:%M') + ct = ct+datetime.timedelta(hours=14) + ct2 = ct.strftime('%H:%M') # new_year = datetime.date(2022, 12, 31) - await message.reply(f'сегодня, {current_datatime}') #отображение времени, пока не рабоатет + await message.reply(f'Сегодня {cd}\nВремя: {ct2}') #отображение времени, пока не рабоатет