Glossary Term
date_i18n()
date_i18n() — Retrieves the date in localized format, based on a sum of Unix timestamp and timezone offset in seconds. If the locale specifies the locale month and weekday, then the locale will take over the format for the date. If it isn’t, then the date format string will be used instead. Note that due to the way WP typically generates a sum of timestamp and offset with strtotime(), it implies offset added at a current time, not at the time the timestamp represents. Storing such timestamps or calculating them differently will lead to invalid output.
Inputs: $format (string): Format to display the date. $timestamp_with_offset (int|bool): Optional. A sum of Unix timestamp and timezone offset in seconds. Default false. $gmt (bool): Optional. Whether to use GMT timezone. Only applies if timestamp is not provided. Default false.
Returns string: The date, translated if locale specifies it.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
