From 7331ebd881eee2637c0accb098c7a1be1e00201b Mon Sep 17 00:00:00 2001 From: denis Date: Tue, 9 Dec 2025 14:21:32 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BC=D0=B5=D1=82=D0=BA=D0=B8=20?= =?UTF-8?q?=D0=BF=D0=BE=20=D0=94=D0=B0=D1=82=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/date.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 python/date.py diff --git a/python/date.py b/python/date.py new file mode 100644 index 0000000..16ff906 --- /dev/null +++ b/python/date.py @@ -0,0 +1,5 @@ +# Преобразование строки в объект даты + +d = "25.11.2024" +dd = datetime.strptime(d,'%d.%m.%Y') +res = dd.strftime('%d.%m.%Y %H:%M:%S') \ No newline at end of file