Core Function
View Source on Trac ↗ iso8601_timezone_to_offset()
iso8601_timezone_to_offset( mixed $timezone ) Given an ISO 8601 timezone, returns its UTC offset in seconds.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $timezone string | Either 'Z' for 0 offset or '±hhmm'. Required |
Return Value
((int)
| float) The offset in seconds.
Function Information
Since Version
1.5.0
Source File
wp-includes/formatting.php
Advertisement