Заметки по Дате

This commit is contained in:
2025-12-09 14:21:32 +00:00
parent 3ea8e50cd4
commit 7331ebd881

5
python/date.py Normal file
View 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')