Function __global->cleanup_date

Definitions

sources/rss.php

  • Convert an ISO date into a timestamp.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$date string No No required parameter N/A N/A The ISO date

Returns

  • If only one element, it contains the timestamp. Otherwise it is a pair: (string format, timestamp)
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Convert an ISO date into a timestamp.
 *
 * @param  string $date The ISO date
 * @return array If only one element, it contains the timestamp. Otherwise it is a pair: (string format, timestamp)
 */

function cleanup_date(string $date) : array