Function __global->get_timezoned_time
Definitions
sources/temporal.php
- Get a nice formatted time from the specified Unix timestamp.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$timestamp | TIME | required parameter | N/A | N/A | Input timestamp |
$use_contextual_times | boolean | True | N/A | N/A | Whether contextual times will be used. Note that we don't currently use contextual (relative) times due to it being a breaker for cache layers. This parameter may be used in the future. |
$utc_time | boolean | False | N/A | N/A | Whether to work in UTC time |
$member_id | ?MEMBER | Null | N/A | N/A | Member for which the time is being rendered (null: current member). Use $GLOBALS['FORUM_DRIVER']->get_guest_id() for server times |
Return
- Formatted time
- Type: string
- Set: N/A
- Range: N/A