Overview

Namespaces

  • None
  • Quform
    • Traduttore_Registry

Constants

  • TRANSIENT_KEY_PLUGIN
  • TRANSIENT_KEY_THEME

Functions

  • add_project
  • clean_translations_cache
  • get_available_locales
  • get_installed_translations
  • get_translations
  • register_clean_translations_cache
  • sanitize_date
  • Overview
  • Namespace
  • Function

Function sanitize_date

Sanitizes a date string.

DateTime fails to parse date strings that contain brackets, such as “Tue Dec 22 2015 12:52:19 GMT+0100 (West-Europa)”, which appears in PO-Revision-Date headers. Sanitization ensures such date headers are parsed correctly into DateTime instances.

Namespace: Quform\Traduttore_Registry
Since: 2.1.0
Located at Traduttore_Registry.php
Parameters summary
string $date_string The date string to sanitize.
Return value summary
DateTime Date from string if parsable, otherwise the Unix epoch.
API documentation generated by ApiGen