Changeset 47461 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 03/16/2020 06:38:03 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/formatting.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r47400 r47461 3500 3500 3501 3501 /** 3502 * Given a date in the timezone of the site, returns that date in UTC timezone.3502 * Given a date in the timezone of the site, returns that date in UTC. 3503 3503 * 3504 3504 * Requires and returns a date in the Y-m-d H:i:s format. … … 3509 3509 * @param string $string The date to be converted, in the timezone of the site. 3510 3510 * @param string $format The format string for the returned date. Default 'Y-m-d H:i:s'. 3511 * @return string Formatted version of the date, in UTC timezone.3511 * @return string Formatted version of the date, in UTC. 3512 3512 */ 3513 3513 function get_gmt_from_date( $string, $format = 'Y-m-d H:i:s' ) { … … 3522 3522 3523 3523 /** 3524 * Given a date in UTC timezone, returns that date in the timezone of the site.3524 * Given a date in UTC or GMT timezone, returns that date in the timezone of the site. 3525 3525 * 3526 3526 * Requires and returns a date in the Y-m-d H:i:s format. … … 3529 3529 * @since 1.2.0 3530 3530 * 3531 * @param string $string The date to be converted, in UTC timezone.3531 * @param string $string The date to be converted, in UTC or GMT timezone. 3532 3532 * @param string $format The format string for the returned date. Default 'Y-m-d H:i:s'. 3533 3533 * @return string Formatted version of the date, in the site's timezone. … … 3544 3544 3545 3545 /** 3546 * Computes an offset in seconds from an iso8601 timezone.3546 * Given an ISO 8601 timezone, returns its UTC offset in seconds. 3547 3547 * 3548 3548 * @since 1.5.0 … … 3565 3565 3566 3566 /** 3567 * Converts an iso8601 (Ymd\TH:i:sO) date toMySQL DateTime (Y-m-d H:i:s) format used by post_date[_gmt].3567 * Given an ISO 8601 (Ymd\TH:i:sO) date, returns a MySQL DateTime (Y-m-d H:i:s) format used by post_date[_gmt]. 3568 3568 * 3569 3569 * @since 1.5.0
Note: See TracChangeset
for help on using the changeset viewer.