Compare commits
No commits in common. "9f95d004c17a0b01433f7b39a5663472ee74b4db" and "4229624763419d772a0eea6856229e0cc2fdbce4" have entirely different histories.
9f95d004c1
...
4229624763
@ -5,7 +5,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(2022, 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