This commit is contained in:
parent
804bea284a
commit
63b5d0809b
2
bot.py
2
bot.py
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user