at path:
ROOT
/
wp-content
/
plugins
/
wordpress-seo
/
inc
/
date-helper.php
run:
R
W
Run
exceptions
DIR
2026-04-15 05:43:04
R
W
Run
options
DIR
2026-04-15 05:43:04
R
W
Run
sitemaps
DIR
2026-04-15 05:43:04
R
W
Run
class-addon-manager.php
26.54 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-my-yoast-api-request.php
5.39 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-post-type.php
3.89 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-rewrite.php
7.58 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-upgrade-history.php
3.04 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-upgrade.php
55.3 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-wpseo-admin-bar-menu.php
28.16 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-wpseo-content-images.php
2.59 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-wpseo-custom-fields.php
1.73 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-wpseo-custom-taxonomies.php
1.59 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-wpseo-image-utils.php
15.03 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-wpseo-installation.php
1.17 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-wpseo-meta.php
34.17 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-wpseo-primary-term.php
1.7 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-wpseo-rank.php
7.38 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-wpseo-replace-vars.php
51.46 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-wpseo-replacement-variable.php
1.34 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-wpseo-shortlinker.php
1.11 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-wpseo-statistics.php
1.41 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-wpseo-utils.php
28.45 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
class-yoast-dynamic-rewrites.php
5.24 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
date-helper.php
1.71 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
index.php
38 By
2026-04-15 05:43:04
R
W
Run
Delete
Rename
interface-wpseo-wordpress-ajax-integration.php
294 By
2026-04-15 05:43:04
R
W
Run
Delete
Rename
interface-wpseo-wordpress-integration.php
348 By
2026-04-15 05:43:04
R
W
Run
Delete
Rename
language-utils.php
1.28 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
wpseo-functions-deprecated.php
68 By
2026-04-15 05:43:04
R
W
Run
Delete
Rename
wpseo-functions.php
9 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
wpseo-non-ajax-functions.php
1.56 KB
2026-04-15 05:43:04
R
W
Run
Delete
Rename
error_log
up
📄
date-helper.php
Save
<?php /** * Date helper class. * * @package WPSEO\Internals */ /** * Class WPSEO_Date_Helper * * Note: Move this class with namespace to the src/helpers directory and add a class_alias for BC. */ class WPSEO_Date_Helper { /** * 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 ) { return YoastSEO()->helpers->date->format( $date, $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 ) { return YoastSEO()->helpers->date->format_timestamp( $timestamp, $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 YoastSEO()->helpers->date->format_translated( $date, $format ); } /** * 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 datatime is valid. */ public function is_valid_datetime( $datetime ) { return YoastSEO()->helpers->date->is_valid_datetime( $datetime ); } }