User:CanvasK/Sandbox/Time2

2018-12-07 05:00 (UTC)


(This doesn't contain the full functionality of the desired end product because it is already lengthy. Idea: add separate param for parenthesized format)
This template is intended to allow for conversion between timezones. It takes a timestamp that is in UTC and creates a parenthesized list of selected timezones. Daylight saving time does not need to be factored in as UTC is DST independent and the functions used automatically converts to the proper times.

The parameter maintz allows for the displayed timezone to be changed away from UTC; if maintz is used then UTC is automatically added to the parenthesized list. Timezones can be added to the list by using their abbreviation followed by "=1", for example "ET=1" will add Eastern US (currently only ET is available). The parameter format can be used to change the output from the default year-month-day 24:00 format. More information about valid timestamps, formatting, non-integer timezones, and more can be found here.

  • No parameters

2018-12-07 05:00 (UTC)

  • ET=1

2018-12-07 05:00 (UTC) (2018-12-07 00:00 (ET))

  • Mixed text and maintz=PT

TEXT 2018-12-06 21:00 (PT) (2018-12-07 05:00 (UTC)) TEXT