Python strftime directive %c
Locale’s appropriate date and time representation.
Example (from datetime(2026, 6, 18, 13, 45, 30))
Jun 18, 2026, 1:45:30 PM
Output depends on the active locale. This page shows the C/English value; switch locales in the tester to see others.
In Python
from datetime import datetime
dt = datetime(2026, 6, 18, 13, 45, 30)
dt.strftime("%c")
# => "Jun 18, 2026, 1:45:30 PM"
Parsing with strptime
Parsing depends on the locale; brittle, avoid. See strptime.dev for the parsing side.