Function __global->usertime_to_utctime
Definitions
sources/temporal.php
- Convert a user timestamp to a UTC timestamp. This is not a function to use much- you probably want utctime_to_usertime.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