pub fn format(when: DateTime<Utc>, php_format: &str) -> StringExpand description
Formats when using a PHP date()-style format string: each
character is either one of the recognized format codes below or a
literal passed through unchanged (PHP’s own punctuation/whitespace
convention - date('Y-m-d')’s - characters are literal, not format
codes). Deliberately not a complete port of PHP’s date() - only
the common codes real Blade templates use; anything else is simply
emitted literally, which is safe here only because
larust-convert’s own converter-time check already rejects any format
string containing a character outside this exact set before it ever
generates a call to this function - nothing reaches this function at
runtime that wasn’t already vetted at convert time.