forked from Pavel_Durov/python_bot
CHANGE TIME TO NEWS YEAR
This commit is contained in:
parent
50504b14ce
commit
deac88534a
@ -4,7 +4,7 @@ import datetime
|
|||||||
|
|
||||||
@dp.message_handler(commands=["time"])
|
@dp.message_handler(commands=["time"])
|
||||||
async def send_time(message: types.Message):
|
async def send_time(message: types.Message):
|
||||||
new_year = datetime.datetime(2024, 12, 31) #дата нового года
|
new_year = datetime.datetime(2023, 12, 31) #дата нового года
|
||||||
ct = datetime.datetime.now() #датавремя
|
ct = datetime.datetime.now() #датавремя
|
||||||
cd = datetime.datetime.now().strftime("%d/%m/%Y") #дата (д,м,г)
|
cd = datetime.datetime.now().strftime("%d/%m/%Y") #дата (д,м,г)
|
||||||
ct1 = ct+datetime.timedelta(hours=15) # +14 часов от сервера
|
ct1 = ct+datetime.timedelta(hours=15) # +14 часов от сервера
|
||||||
|
Loading…
Reference in New Issue
Block a user