This commit is contained in:
parent
804bea284a
commit
63b5d0809b
4
bot.py
4
bot.py
@ -17,11 +17,11 @@ 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)
|
||||||
await message.reply(f'Сегодня {cd}\nВремя: {ct2}') #отображение времени, пока не рабоатет
|
await message.reply(f'Сегодня {cd} \nВремя:{ct2}') #отображение времени, пока не рабоатет
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user