/
home
/
vianto5
/
ceibaresidencial.mx
/
wp-content
/
plugins
/
google-site-kit
/
includes
/
Core
/
Util
/
/home/vianto5/ceibaresidencial.mx/wp-content/plugins/google-site-kit/includes/Core/Util
mkdir
upload
Name
Size
Mode
Actions
Activation_Flag.php
3324
0644
edit
dl
rm
Activation_Notice.php
4206
0644
edit
dl
rm
Auto_Updates.php
4390
0644
edit
dl
rm
BC_Functions.php
6507
0644
edit
dl
rm
Block_Support.php
1354
0644
edit
dl
rm
Collection_Key_Cap_Filter.php
1411
0644
edit
dl
rm
Current_Screen.php
987
0644
edit
dl
rm
Date.php
2711
0644
edit
dl
rm
Developer_Plugin_Installer.php
5574
0644
edit
dl
rm
Entity.php
3278
0644
edit
dl
rm
Entity_Factory.php
21124
0644
edit
dl
rm
Exit_Handler.php
836
0644
edit
dl
rm
Feature_Flags.php
2381
0644
edit
dl
rm
Google_Icon.php
1880
0644
edit
dl
rm
Google_URL_Matcher_Trait.php
3096
0644
edit
dl
rm
Google_URL_Normalizer.php
1637
0644
edit
dl
rm
Health_Checks.php
4088
0644
edit
dl
rm
Input.php
2826
0644
edit
dl
rm
Method_Proxy_Trait.php
1118
0644
edit
dl
rm
Migrate_Legacy_Keys.php
1109
0644
edit
dl
rm
Migration_1_3_0.php
3039
0644
edit
dl
rm
Migration_1_8_1.php
7016
0644
edit
dl
rm
Migration_1_123_0.php
4647
0644
edit
dl
rm
Migration_1_129_0.php
4111
0644
edit
dl
rm
Migration_1_150_0.php
3191
0644
edit
dl
rm
Migration_1_163_0.php
3157
0644
edit
dl
rm
Migration_1_177_0.php
2861
0644
edit
dl
rm
Migration_1_185_0.php
2953
0644
edit
dl
rm
Plugin_Status.php
1390
0644
edit
dl
rm
Requires_Javascript_Trait.php
1116
0644
edit
dl
rm
Reset.php
9968
0644
edit
dl
rm
Reset_Persistent.php
666
0644
edit
dl
rm
REST_Entity_Search_Controller.php
3416
0644
edit
dl
rm
Sanitize.php
1068
0644
edit
dl
rm
Scopes.php
2655
0644
edit
dl
rm
Sort.php
1123
0644
edit
dl
rm
Synthetic_WP_Query.php
4182
0644
edit
dl
rm
Uninstallation.php
4399
0644
edit
dl
rm
URL.php
5581
0644
edit
dl
rm
WP_Context_Switcher_Trait.php
2176
0644
edit
dl
rm
WP_Query_Factory.php
10000
0644
edit
dl
rm
Edit:
/home/vianto5/ceibaresidencial.mx/wp-content/plugins/google-site-kit/includes/Core/Util/Date.php
(2711B)
<?php /** * Class Google\Site_Kit\Core\Util\Date * * @package Google\Site_Kit\Core\Util * @copyright 2023 Google LLC * @license https://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 * @link https://sitekit.withgoogle.com */ namespace Google\Site_Kit\Core\Util; /** * Class for custom date parsing methods. * * @since 1.99.0 * @access private * @ignore */ class Date { /** * Gets the reference date. * * @since 1.174.0 * * @return string|null Reference date in 'Y-m-d' format or null. */ public static function reference_date() { /** * Filter to allow setting a custom reference date for testing purposes. * * @since 1.174.0 * * @return string|null Reference date in 'Y-m-d' format or null. */ return apply_filters( 'googlesitekit_reference_date', null ); } /** * Gets the current time. * * @since 1.177.0 * * @return int Current time. */ public static function now() { $reference_date = self::reference_date(); if ( $reference_date ) { $time = strtotime( $reference_date ); if ( $time ) { return $time; } } return time(); } /** * Parses a date range string into a start date and an end date. * * @since 1.99.0 * * @param string $range Date range string. Either 'last-7-days', 'last-14-days', 'last-90-days', or * 'last-28-days' (default). * @param int $multiplier Optional. How many times the date range to get. This value can be specified if the * range should be request multiple times back. Default 1. * @param int $offset Days the range should be offset by. Default 1. Used by Search Console where * data is delayed by two days. * @param bool $previous Whether to select the previous period. Default false. * @return array List with two elements, the first with the start date and the second with the end date, both as 'Y-m-d'. */ public static function parse_date_range( $range, $multiplier = 1, $offset = 1, $previous = false ) { preg_match( '*-(\d+)-*', $range, $matches ); $number_of_days = $multiplier * ( isset( $matches[1] ) ? $matches[1] : 28 ); // Calculate the end date. For previous period requests, offset period by the number of days in the request. $end_date_offset = $previous ? $offset + $number_of_days : $offset; $date_end = gmdate( 'Y-m-d', strtotime( $end_date_offset . ' days ago' ) ); // Set the start date. $start_date_offset = $end_date_offset + $number_of_days - 1; $date_start = gmdate( 'Y-m-d', strtotime( $start_date_offset . ' days ago' ) ); return array( $date_start, $date_end ); } }
Save
cmd:
run