Function __global->utctime_to_usertime

Definitions

sources/temporal.php

  • Convert a UTC timestamp to a user timestamp. The user timestamp should not be pumped through get_timezoned_* as this already performs the conversions internally.What complicates understanding of matters is that "user time" is not the timestamp that would exist on a user's PC, as all timestamps are meant to be stored in UTC. "user time" is offsetted to compensate, a virtual construct.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: int

Parameters

Name Type Default Set Range Description
$timestamp ?TIME Null N/A N/A Input timestamp (null: now)
$member_id ?MEMBER Null N/A N/A Member for which the date is being rendered (null: current member)

Return

  • Output timestamp
  • Type: TIME
  • Set: N/A
  • Range: N/A