How strftime format strings work
strftime ("string format time") comes from the C standard library and is used almost unchanged by Python's datetime.strftime, Ruby's Time#strftime, PHP's deprecated strftime(), Perl's POSIX module and the Unix date +FORMAT command. A format string mixes literal text with directives that start with %: %Y-%m-%d becomes 2026-03-05 and %A, %B %e becomes Thursday, March 5.
The preview uses the C locale (English names, %c as Thu Mar 5 14:07:09 2026). The date and time you enter are used as-is, and the UTC offset menu supplies %z and %Z, so the preview never depends on your computer's time zone. Directives that are not defined, such as %Q, are shown unchanged and flagged; Python passes unknown directives through on most platforms, but some C libraries print nothing or crash.