iso8601_timezone_to_offset


iso8601_timezone_to_offset ( $timezone )

Parameters:
  • (string) timezone Either 'Z' for 0 offset or '±hhmm'.
Returns:
  • (int|float) The offset in seconds.
Defined at:

Description

Given an ISO 8601 timezone, returns its UTC offset in seconds.

Related Functions

wp_timezone_override_offset, wp_timezone_choice, wp_timezone_string, iso8601_to_datetime, wp_timezone_supported

Top Google Results

User discussions

wpseek mobile