Current Path: > home > codekrsu > > escapematrixonline.com > wp-content > plugins > wordpress-seo > src > helpers
Operation : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 Software : Apache Server IP : 162.0.232.56 | Your IP: 216.73.216.111 Domains : 1034 Domain(s) Permission : [ 0755 ]
Name | Type | Size | Last Modified | Actions |
---|---|---|---|---|
open-graph | Directory | - | - | |
schema | Directory | - | - | |
Directory | - | - | ||
aioseo-helper.php | File | 1266 bytes | April 07 2025 13:46:06. | |
asset-helper.php | File | 2572 bytes | March 05 2024 17:08:32. | |
attachment-cleanup-helper.php | File | 2294 bytes | February 07 2023 14:53:12. | |
author-archive-helper.php | File | 5375 bytes | April 07 2025 13:46:06. | |
blocks-helper.php | File | 2378 bytes | November 29 2022 19:15:00. | |
capability-helper.php | File | 2116 bytes | September 01 2020 16:27:02. | |
crawl-cleanup-helper.php | File | 8293 bytes | January 19 2024 15:31:02. | |
curl-helper.php | File | 655 bytes | September 01 2022 10:45:32. | |
current-page-helper.php | File | 12958 bytes | April 07 2025 13:46:06. | |
date-helper.php | File | 3208 bytes | December 21 2021 15:29:22. | |
environment-helper.php | File | 793 bytes | November 29 2022 19:15:00. | |
first-time-configuration-notice-helper.php | File | 5284 bytes | April 07 2025 13:46:06. | |
home-url-helper.php | File | 770 bytes | September 01 2020 16:27:02. | |
image-helper.php | File | 11972 bytes | September 24 2024 13:30:56. | |
import-cursor-helper.php | File | 1392 bytes | April 07 2025 13:46:06. | |
import-helper.php | File | 716 bytes | April 05 2022 17:50:02. | |
indexable-helper.php | File | 9204 bytes | June 18 2024 13:15:02. | |
indexable-to-postmeta-helper.php | File | 6913 bytes | April 07 2025 13:46:06. | |
indexing-helper.php | File | 12991 bytes | April 07 2025 13:46:06. | |
language-helper.php | File | 2716 bytes | January 10 2023 17:05:10. | |
meta-helper.php | File | 2982 bytes | January 25 2022 15:16:10. | |
notification-helper.php | File | 1982 bytes | April 07 2025 13:46:06. | |
options-helper.php | File | 4120 bytes | November 05 2024 16:04:06. | |
pagination-helper.php | File | 5815 bytes | April 07 2025 13:46:06. | |
permalink-helper.php | File | 1286 bytes | September 29 2020 15:04:14. | |
post-helper.php | File | 5553 bytes | April 07 2025 13:46:06. | |
post-type-helper.php | File | 7349 bytes | January 19 2024 15:31:02. | |
primary-term-helper.php | File | 1398 bytes | January 19 2024 15:31:02. | |
product-helper.php | File | 1103 bytes | August 08 2023 16:52:42. | |
redirect-helper.php | File | 1764 bytes | January 19 2024 15:31:02. | |
require-file-helper.php | File | 326 bytes | April 07 2025 13:46:06. | |
robots-helper.php | File | 1777 bytes | April 07 2025 13:46:06. | |
robots-txt-helper.php | File | 2722 bytes | November 29 2022 19:15:00. | |
sanitization-helper.php | File | 1056 bytes | January 25 2022 15:16:10. | |
score-icon-helper.php | File | 2846 bytes | May 09 2023 13:01:36. | |
short-link-helper.php | File | 3607 bytes | April 07 2025 13:46:06. | |
site-helper.php | File | 566 bytes | March 22 2021 17:43:50. | |
social-profiles-helper.php | File | 10990 bytes | May 14 2024 17:22:56. | |
string-helper.php | File | 1218 bytes | January 25 2022 15:16:10. | |
taxonomy-helper.php | File | 5100 bytes | January 24 2023 15:07:46. | |
url-helper.php | File | 8357 bytes | April 07 2025 13:46:06. | |
user-helper.php | File | 4026 bytes | December 03 2024 16:05:20. | |
wincher-helper.php | File | 2569 bytes | June 13 2023 14:02:52. | |
woocommerce-helper.php | File | 1312 bytes | March 22 2022 18:19:38. | |
wordpress-helper.php | File | 512 bytes | July 07 2021 18:45:50. | |
wpdb-helper.php | File | 937 bytes | April 07 2025 13:46:06. |
<?php namespace Yoast\WP\SEO\Helpers; use DateTime; use DateTimeZone; use Exception; /** * A helper object for dates. */ class Date_Helper { /** * Convert given date string to the W3C format. * * If $translate is true then the given date and format string will * be passed to date_i18n() for translation. * * @param string $date Date string to convert. * @param bool $translate Whether the return date should be translated. Default false. * * @return string Formatted date string. */ public function mysql_date_to_w3c_format( $date, $translate = false ) { return \mysql2date( \DATE_W3C, $date, $translate ); } /** * Formats a given date in UTC TimeZone format. * * @param string $date String representing the date / time. * @param string $format The format that the passed date should be in. * * @return string The formatted date. */ public function format( $date, $format = \DATE_W3C ) { if ( ! \is_string( $date ) ) { return $date; } $immutable_date = \date_create_immutable_from_format( 'Y-m-d H:i:s', $date, new DateTimeZone( 'UTC' ) ); if ( ! $immutable_date ) { return $date; } return $immutable_date->format( $format ); } /** * Formats the given timestamp to the needed format. * * @param int $timestamp The timestamp to use for the formatting. * @param string $format The format that the passed date should be in. * * @return string The formatted date. */ public function format_timestamp( $timestamp, $format = \DATE_W3C ) { if ( ! \is_string( $timestamp ) && ! \is_int( $timestamp ) ) { return $timestamp; } $immutable_date = \date_create_immutable_from_format( 'U', $timestamp, new DateTimeZone( 'UTC' ) ); if ( ! $immutable_date ) { return $timestamp; } return $immutable_date->format( $format ); } /** * Formats a given date in UTC TimeZone format and translate it to the set language. * * @param string $date String representing the date / time. * @param string $format The format that the passed date should be in. * * @return string The formatted and translated date. */ public function format_translated( $date, $format = \DATE_W3C ) { return \date_i18n( $format, $this->format( $date, 'U' ) ); } /** * Returns the current time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT). * * @return int The current time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT). */ public function current_time() { return \time(); } /** * Check if a string is a valid datetime. * * @param string $datetime String input to check as valid input for DateTime class. * * @return bool True when datetime is valid. */ public function is_valid_datetime( $datetime ) { if ( $datetime === null ) { /* * While not "officially" supported, `null` will be handled as `"now"` until PHP 9.0. * @link https://3v4l.org/tYp2k */ return true; } if ( \is_string( $datetime ) && \substr( $datetime, 0, 1 ) === '-' ) { return false; } try { return new DateTime( $datetime ) !== false; } catch ( Exception $exception ) { return false; } } }
SILENT KILLER Tool