Заметки по Дате
This commit is contained in:
5
python/date.py
Normal file
5
python/date.py
Normal file
@@ -0,0 +1,5 @@
|
||||
# Преобразование строки в объект даты
|
||||
|
||||
d = "25.11.2024"
|
||||
dd = datetime.strptime(d,'%d.%m.%Y')
|
||||
res = dd.strftime('%d.%m.%Y %H:%M:%S')
|
||||
Reference in New Issue
Block a user