Template:T/doc

This template is used to automatically convert a time from a local time zone to UTC. It takes multiple parameters in various combinations:
 * (preferred)
 * (preferred)

For example,  produces:
 * 1600

and  produces:
 * +0100

Half-hour (and quarter-hour) offsets should also work, but don't:
 * 1600

It also accepts a time as an optional third parameter, in case the template works it out wrong (as happens, for example, with half-hour offsets as mentioned above, or sometimes where two time zones share a code). The fourth parameter can be used to specify a different time zone, instead of UTC, but in these cases the time must be entered into the third parameter manually. Thus  produces:
 * 1600

The time zone codes for both parameters are automatically linked to the relevant English Wikipedia article. Where no Wikipedia article exists, an  tag, with the full name of the time zone as the title text, is used. Hence  produces:
 * 1600

Using the template with no parameters should produce the current time in UTC, so  outputs undefined.

Note: Times and offsets must be entered as four-digit 24-hour numbers with no colon. Hence 7:00pm must be entered as  and an offset of one hour as   or.