API / Minn\I18n / LocalDates

LocalDates final class

Minn\I18n\LocalDates · public/minn/src/Minn/I18n/LocalDates.php · 35 lines

A date in the site's language, as the reference's wp_date writes one: PHP's format, with the weekday and month names (D, l, F, M) and the meridiems (a, A) in the language's own words, and a month written after its day in the genitive where the language declines month names. Backslashed characters stay as written.

Public

staticformat(DateTimeInterface $time, string $format): string#

The date in the format given, its names translated.