HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpicare/wp-content/plugins/wp-rocket/inc/Engine/Common/Clock/ClockInterface.php
<?php

namespace WP_Rocket\Engine\Common\Clock;

interface ClockInterface {
	/**
	 * Retrieves the current time based on specified type.
	 *
	 *  - The 'mysql' type will return the time in the format for MySQL DATETIME field.
	 *  - The 'timestamp' or 'U' types will return the current timestamp or a sum of timestamp
	 *    and timezone offset, depending on `$gmt`.
	 *  - Other strings will be interpreted as PHP date formats (e.g. 'Y-m-d').
	 *
	 * If `$gmt` is a truthy value then both types will use GMT time, otherwise the
	 * output is adjusted with the GMT offset for the site.
	 *
	 * @since 1.0.0
	 * @since 5.3.0 Now returns an integer if `$type` is 'U'. Previously a string was returned.
	 *
	 * @param string   $type Type of time to retrieve. Accepts 'mysql', 'timestamp', 'U',
	 *                       or PHP date format string (e.g. 'Y-m-d').
	 * @param int|bool $gmt  Optional. Whether to use GMT timezone. Default false.
	 *
	 * @return int|string Integer if `$type` is 'timestamp' or 'U', string otherwise.
	 */
	public function current_time( string $type, $gmt = 0 );
}