Python strftime directive %%
A literal “%” character.
Example (from datetime(2026, 6, 18, 13, 45, 30))
%
In Python
from datetime import datetime
dt = datetime(2026, 6, 18, 13, 45, 30)
dt.strftime("%%")
# => "%"
Parsing with strptime
Matches a literal “%”. See strptime.dev for the parsing side.