Function __global->tz_time

Definitions

sources/temporal.php

  • For a UTC timestamp, find the equivalent virtualised local timestamp.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: int

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$time TIME No No required parameter N/A N/A UTC time
$zone string No No required parameter N/A N/A Timezone (boring style)

Returns

  • Virtualised local time
  • Type: TIME
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * For a UTC timestamp, find the equivalent virtualised local timestamp.
 *
 * @param  TIME $time UTC time
 * @param  string $zone Timezone (boring style)
 * @return TIME Virtualised local time
 */

function tz_time(int $time, string $zone) : int