timezones()

timezones([$tz = ''])

Parameters:
  • $tz (string) – A numeric timezone
Returns:

Hour difference from UTC

Return type:

int

Takes a timezone reference (for a list of valid timezones, see the “Timezone Reference” below) and returns the number of hours offset from UTC.

Example:

echo timezones('UM5');

This function is useful when used with timezone_menu().

doc_CodeIgniter
2016-10-15 16:32:42
Comments
Leave a Comment

Please login to continue.