Changeset 46958 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 12/13/2019 09:43:06 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r46896 r46958 3498 3498 3499 3499 /** 3500 * Returns a date in the GMT equivalent.3500 * Given a date in the timezone of the site, returns that date in UTC timezone. 3501 3501 * 3502 3502 * Requires and returns a date in the Y-m-d H:i:s format. … … 3505 3505 * @since 1.2.0 3506 3506 * 3507 * @param string $string The date to be converted .3507 * @param string $string The date to be converted, in the timezone of the site. 3508 3508 * @param string $format The format string for the returned date. Default 'Y-m-d H:i:s'. 3509 * @return string GMT version of the date provided.3509 * @return string Formatted version of the date, in UTC timezone. 3510 3510 */ 3511 3511 function get_gmt_from_date( $string, $format = 'Y-m-d H:i:s' ) { … … 3520 3520 3521 3521 /** 3522 * Converts a GMT date into the correct format for the blog.3522 * Given a date in UTC timezone, returns that date in the timezone of the site. 3523 3523 * 3524 3524 * Requires and returns a date in the Y-m-d H:i:s format. … … 3527 3527 * @since 1.2.0 3528 3528 * 3529 * @param string $string The date to be converted .3529 * @param string $string The date to be converted, in UTC timezone. 3530 3530 * @param string $format The format string for the returned date. Default 'Y-m-d H:i:s'. 3531 * @return string Formatted date relative to thetimezone.3531 * @return string Formatted version of the date, in the site's timezone. 3532 3532 */ 3533 3533 function get_date_from_gmt( $string, $format = 'Y-m-d H:i:s' ) {
Note: See TracChangeset
for help on using the changeset viewer.