Extension:TimeConvert

The TimeConvert extension provides a parser function and Scribunto Lua library to convert a time to a different time zone.

Examples
=> 2014-01-01T08:00:00-0500 => 8:00 AM          => 13:00

Documentation

 * : A date time string.
 * : The time zone to convert  to.
 * : The output format to use. The default is ISO 8601.

Scribunto Lua Library
TimeConvert provides a Scribunto library,. Examples:

local timeconvert = mw.ext.timeconvert.timeconvert timeconvert("2014-01-01 13:00 GMT", "America/New_York")         => "2014-01-01T08:00:00-0500" timeconvert("2014-01-01 13:00 GMT", "America/New_York", "g:i A") => "8:00 AM" timeconvert("2014-01-01 8:00 AM EST", "Etc/GMT", "G:i")         => "13:00"