Page tree
Skip to end of metadata
Go to start of metadata

FreePBX::View()->drawClock($time, $tz, $id, $label, $errormsg)

All items are optional.

  • $time int Unixtime, default NOW
  • $tz string Timezone. Example: America/Phoenix, default php timezone
  • $id string The id for the html element, default clock{randint}
  • $label string What prefixes the time, default "Server time:"
  • $errormsg string What displays if there is a javascript failure.
  • No labels