Compare commits

...

2 Commits

Author SHA1 Message Date
Pavel_Durov
9f95d004c1 Merge branch '0.1.0-dev' of https://git.vdk2ch.ru/Pavel_Durov/python_bot into 0.1.0-dev
All checks were successful
continuous-integration/drone/push Build is passing
2023-06-22 18:56:58 +03:00
Pavel_Durov
cfab19f4d4 cahnge data new year 2024 2023-06-22 18:55:27 +03:00

View File

@ -5,7 +5,7 @@ import datetime
@dp.message_handler(commands=["time"])
async def send_time(message: types.Message):
new_year = datetime.datetime(2022, 12, 31) # дата нового года
new_year = datetime.datetime(2024, 12, 31) # дата нового года
ct = datetime.datetime.now() # дата/время
cd = datetime.datetime.now().strftime("%d/%m/%Y") # дата (д,м,г)
ct1 = ct+datetime.timedelta(hours=15) # +14 часов от сервера