diff --git a/packages/date/README.md b/packages/date/README.md index 4f0a64c24aa713..a7543df01cd631 100644 --- a/packages/date/README.md +++ b/packages/date/README.md @@ -27,7 +27,7 @@ _Related_ _Parameters_ -- _dateFormat_ `string`: PHP-style formatting string. See php.net/date. +- _dateFormat_ `string`: PHP-style formatting string. See [php.net/date](https://www.php.net/manual/en/function.date.php). - _dateValue_ `Moment | Date | string | undefined`: Date object or string, parsable by moment.js. - _timezone_ `string | number | undefined`: Timezone to output result in or a UTC offset. Defaults to timezone from site. @@ -48,7 +48,7 @@ _Related_ _Parameters_ -- _dateFormat_ `string`: PHP-style formatting string. See php.net/date. +- _dateFormat_ `string`: PHP-style formatting string. See [php.net/date](https://www.php.net/manual/en/function.date.php). - _dateValue_ `Moment | Date | string | undefined`: Date object or string, parsable by moment.js. - _timezone_ `string | number | boolean | undefined=`: Timezone to output result in or a UTC offset. Defaults to timezone from site. Notice: `boolean` is effectively deprecated, but still supported for backward compatibility reasons. @@ -62,7 +62,7 @@ Formats a date. Does not alter the date's timezone. _Parameters_ -- _dateFormat_ `string`: PHP-style formatting string. See php.net/date. +- _dateFormat_ `string`: PHP-style formatting string. See [php.net/date](https://www.php.net/manual/en/function.date.php). - _dateValue_ `Moment | Date | string | undefined`: Date object or string, parsable by moment.js. _Returns_ @@ -95,7 +95,7 @@ Formats a date (like `date()` in PHP), in the UTC timezone. _Parameters_ -- _dateFormat_ `string`: PHP-style formatting string. See php.net/date. +- _dateFormat_ `string`: PHP-style formatting string. See [php.net/date](https://www.php.net/manual/en/function.date.php). - _dateValue_ `Moment | Date | string | undefined`: Date object or string, parsable by moment.js. _Returns_ @@ -108,7 +108,7 @@ Formats a date (like `wp_date()` in PHP), translating it into site's locale and _Parameters_ -- _dateFormat_ `string`: PHP-style formatting string. See php.net/date. +- _dateFormat_ `string`: PHP-style formatting string. See [php.net/date](https://www.php.net/manual/en/function.date.php). - _dateValue_ `Moment | Date | string | undefined`: Date object or string, parsable by moment.js. _Returns_ diff --git a/packages/date/src/index.js b/packages/date/src/index.js index 8d8f53fd8bc10f..5af8b5f4780e89 100644 --- a/packages/date/src/index.js +++ b/packages/date/src/index.js @@ -445,7 +445,7 @@ const formatMap = { * Formats a date. Does not alter the date's timezone. * * @param {string} dateFormat PHP-style formatting string. - * See php.net/date. + * See [php.net/date](https://www.php.net/manual/en/function.date.php). * @param {Moment | Date | string | undefined} dateValue Date object or string, * parsable by moment.js. * @@ -487,7 +487,7 @@ export function format( dateFormat, dateValue = new Date() ) { * Formats a date (like `date()` in PHP). * * @param {string} dateFormat PHP-style formatting string. - * See php.net/date. + * See [php.net/date](https://www.php.net/manual/en/function.date.php). * @param {Moment | Date | string | undefined} dateValue Date object or string, parsable * by moment.js. * @param {string | number | undefined} timezone Timezone to output result in or a @@ -508,7 +508,7 @@ export function date( dateFormat, dateValue = new Date(), timezone ) { * Formats a date (like `date()` in PHP), in the UTC timezone. * * @param {string} dateFormat PHP-style formatting string. - * See php.net/date. + * See [php.net/date](https://www.php.net/manual/en/function.date.php). * @param {Moment | Date | string | undefined} dateValue Date object or string, * parsable by moment.js. * @@ -526,7 +526,7 @@ export function gmdate( dateFormat, dateValue = new Date() ) { * behaves like `gmdateI18n`. * * @param {string} dateFormat PHP-style formatting string. - * See php.net/date. + * See [php.net/date](https://www.php.net/manual/en/function.date.php). * @param {Moment | Date | string | undefined} dateValue Date object or string, parsable by * moment.js. * @param {string | number | boolean | undefined=} timezone Timezone to output result in or a @@ -559,7 +559,7 @@ export function dateI18n( dateFormat, dateValue = new Date(), timezone ) { * and using the UTC timezone. * * @param {string} dateFormat PHP-style formatting string. - * See php.net/date. + * See [php.net/date](https://www.php.net/manual/en/function.date.php). * @param {Moment | Date | string | undefined} dateValue Date object or string, * parsable by moment.js. *