WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/iso8601 timezone to offset

Description

Computes an offset in seconds from an ISO 8601 timezone.

Usage

<?php iso8601_timezone_to_offset$timezone ?>

Parameters

$timezone
(string) (required) Either 'Z' for 0 offset or '±hhmm'.
Default: None

Return Values

(integer|float) 
The offset in seconds.

Examples

Notes

Change Log

Since: 1.5.0

Source File

iso8601_timezone_to_offset() is located in wp-includes/formatting.php.

Related

See also index of Function Reference and index of Template Tags.