We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6da69b6 commit 402d2d9Copy full SHA for 402d2d9
1 file changed
Lib/test/test_strptime.py
@@ -663,6 +663,13 @@ def test_strptime_T_format(self):
663
time.strptime(test_time, "%H:%M:%S")
664
)
665
666
+ def test_strptime_D_format(self):
667
+ test_date = "10/26/2025"
668
+ self.assertEqual(
669
+ time.strptime(test_date, "%D"),
670
+ time.strptime(test_date, "%m/%d/%Y")
671
+ )
672
+
673
class Strptime12AMPMTests(unittest.TestCase):
674
"""Test a _strptime regression in '%I %p' at 12 noon (12 PM)"""
675
0 commit comments