Ticket #8750: functions.php.diff
File functions.php.diff, 1.0 KB (added by , 16 years ago) |
---|
-
wp-includes/functions.php
79 79 * The 'mysql' type will return the time in the format for MySQL DATETIME field. 80 80 * The 'timestamp' type will return the current timestamp. 81 81 * 82 * If the $gmt is set to either '1' or 'true', then both types will use the83 * GMT offset in the WordPress option to add the GMT offset to the time.82 * If $gmt is set to either '1' or 'true', then both types will use GMT time. 83 * if $gmt is false, the output is adjusted with the GMT offset in the WordPress option. 84 84 * 85 85 * @since 1.0.0 86 86 * 87 87 * @param string $type Either 'mysql' or 'timestamp'. 88 * @param int|bool $gmt Optional. Whether to use $gmt offset. Default is false.88 * @param int|bool $gmt Optional. Whether to use GMT timezone. Default is false. 89 89 * @return int|string String if $type is 'gmt', int if $type is 'timestamp'. 90 90 */ 91 91 function current_time( $type, $gmt = 0 ) {