In this article, we will explore Module:Time/data in depth, a topic that has captured the attention of many in recent times. Module:Time/data is a complex concept that encompasses a wide range of ideas and perspectives, and its impact can be felt in different areas of society. Throughout this article, we will examine the various facets of Module:Time/data, from its origins to its influence on the world today. We will also look at how Module:Time/data has evolved over time and how it has shaped our ways of thinking and acting. Additionally, we will explore the future implications of Module:Time/data and how it may impact our society in the years to come. This article offers a detailed and comprehensive look at Module:Time/data, providing readers with a deeper understanding of this fascinating and relevant topic.
This module stores data relating to timezone that is used by Module:Time or any other module and templates that need it.
--[[--------------------------< C O N F I G U R A T I O N D A T A >------------------------------------------
for internationalization, this section to hold constant text, parameter names and values, other items subject to
language translation
]]
local cfg = {
= 'mdy', -- default date format when |<df> and |df= omitted or empty
= {
=true,
=true, -- also 'y'
=true,
=true,
=true,
=true,
=true, -- also 'dmy' and 'dmy12'
=true,
=true,
};
= '<span style="font-size:100%" class="error">{{$1}} – $2 (])</span>',
= {
= 'incomplete definition for $1',
= 'both of |df-cust-a= and |df-cust-p required',
= 'error calculating dst timestamps',
= 'invalid date format $1',
= 'invalid use of ±',
= 'malformed or incomplete _TEST_TIME_',
= 'unknown timezone $1',
= 'missing required timezone',
},
= { -- output formatting strings
t12 = 'g:i a', -- time only
t24 = 'H:i',
iso_date ='Y-m-d', -- date only
dmy_date = 'j F Y',
mdy_date = 'F j, Y',
dmy12 = 'g:i a, j F Y', -- 12hr time and date
mdy12 = 'g:i a, F j, Y',
dmy = 'H:i, j F Y', -- 24hr time and date
mdy = 'H:i, F j, Y',
iso = 'Y-m-d"T"H:i',
dow = 'l' -- day of the week
},
= 'refresh',
-- for dst calculations
days = { = 0, = 1, = 2, = 3, = 4, = 5, = 6},
months = { = 1, = 2, = 3, = 4, = 5, = 6,
= 7, = 8, = 9, = 10, = 11, = 12};
ordinals = { = 1, = 1, = 2, = 2, = 3, = 3, = 4, = 4, = 5, = 5, = -1},
-- parameter list
aliases = {
= {'dateonly'},
= {'df'},
= {'df-cust'},
= {'df-cust-a'},
= {'df-cust-p'},
= {'dst'},
= {'hide-refresh'},
= {'hide-tz'},
= {'lang'},
= {'timeonly'},
= {'unlink-tz'},
}
}
--[[--------------------------< A L I A S E S >----------------------------------------------------------------
]]
local tz_aliases = {
= 'gmt-uk',
= 'gmt-ie',
= 'kalt', -- old form Kaliningrad time
= 'wet', -- dst aliases east of utc
= 'cet',
= 'eet',
= 'acst',
= 'aest',
= 'nzst',
= 'ast', -- alternate abbreviations west of utc
= 'est',
= 'cst',
= 'pst',
= 'akst',
= 'hst',
= 'pmst', -- dst aliases west of utc
= 'wgt',
= 'nst',
= 'ast',
= 'est',
= 'cst',
= 'mst',
= 'pst',
= 'akst',
= 'hst',
= 'hst',
}
--[[--------------------------< T I M E Z O N E D A T A >----------------------------------------------------
When specifying utc offset do not use the minus character (U+2212) for offsets west of 0 meridian; use the minus-hyphen
]]
local tz_data = {
------------------------------< E A S T U T C + H H : M M >--------------------------------------------------
= {
abbr = 'UTC', -- (required) abbreviation to use during standard time
dst_abbr = '', -- abbreviation to use during daylight saving time
utc_offset = '00:00', -- (required) hours and minutes offset from UTC for this timezone; '+' is optional; '-' (hyphen-minus) is required for timezones west of 0 meridian
df = 'dmy', -- date format typically used in the time zone
dst_begins = '', -- daylight saving begins; e.g. 2nd Sunday in March; also last; empty string if not observed
dst_ends = '', -- (required if dst_begins is set) daylight saving ends; e.g. 1st Sunday in November; ignored if dst_begins not set
dst_time = '', -- (required if dst_begins is set) local time on the day that dst begins/ends; for EU DST rules specify utc time: e.g.: '01:00 UTC'
dst_e_time = '', -- local daylight saving time on the day that dst ends; only when different from dst_time; see acst for an example
article = 'Coordinated Universal Time' -- (required) name of related Wikipedia article without markup
},
= {
abbr = 'GMT',
dst_abbr = '',
utc_offset = '00:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Greenwich Mean Time'
},
= {
abbr = 'GMT',
dst_abbr = 'BST', -- British Summer Time
utc_offset = '00:00',
df = 'dmy',
dst_begins = 'last Sunday of March',
dst_ends = 'last Sunday of October',
dst_time = '01:00 UTC', -- 01:00 standard time is same as 01:00 UTC
article = 'Time in the United Kingdom'
},
= { -- ist is shared with Indian Standard Time so use gmt-ie
abbr = 'GMT', -- winter time
dst_abbr = 'IST', -- Irish Standard Time occurs in summer
utc_offset = '00:00',
df = 'dmy',
dst_begins = 'last Sunday of March',
dst_ends = 'last Sunday of October',
dst_time = '01:00 UTC', -- 01:00 standard time is same as 01:00 UTC
article = 'Time in Ireland'
},
= {
abbr = 'WET',
dst_abbr = 'WEST',
utc_offset = '00:00',
df = 'dmy',
dst_begins = 'last Sunday of March',
dst_ends = 'last Sunday of October',
dst_time = '01:00 UTC', -- 01:00 standard time is same as 01:00 UTC
article = 'Western European Time'
},
= {
abbr = 'CET',
dst_abbr = 'CEST',
utc_offset = '01:00',
df = 'dmy',
dst_begins = 'last Sunday of March',
dst_ends = 'last Sunday of October',
dst_time = '01:00 UTC', -- 02:00 standard time is same as 01:00 UTC
article = 'Central European Time'
},
= {
abbr = 'EET',
dst_abbr = 'EEST',
utc_offset = '02:00',
df = 'dmy',
dst_begins = 'last Sunday of March',
dst_ends = 'last Sunday of October',
dst_time = '01:00 UTC', -- 03:00 standard time is same as 01:00 UTC
article = 'Eastern European Time'
},
= {
abbr = 'IST',
dst_abbr = 'IDT',
utc_offset = '02:00',
df = 'dmy',
dst_begins = 'last Friday in March',
dst_ends = 'last Sunday in October',
dst_time = '02:00',
article = 'Time in Israel'
},
= {
abbr = 'KALT',
dst_abbr = '',
utc_offset = '02:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Kaliningrad Time'
},
= {
abbr = 'SAST',
dst_abbr = '',
utc_offset = '02:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
dst_e_time = '',
article = 'South African Standard Time'
},
= {
abbr = 'MSK',
dst_abbr = '',
utc_offset = '03:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Moscow Time'
},
= {
abbr = 'IRST',
dst_abbr = '',
utc_offset = '03:30',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Iran Standard Time'
},
= {
abbr = 'SAMT',
dst_abbr = '',
utc_offset = '04:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Samara Time'
},
= {
abbr = 'KZT',
dst_abbr = '',
utc_offset = '05:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
dst_e_time = '',
article = 'Time in Kazakhstan'
},
= {
abbr = 'MVT',
dst_abbr = '',
utc_offset = '05:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Time in Maldives'
},
= {
abbr = 'PKT',
dst_abbr = '',
utc_offset = '05:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Pakistan Standard Time'
},
= {
abbr = 'YEKT',
dst_abbr = '',
utc_offset = '05:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Yekaterinburg Time'
},
= {
abbr = 'IST',
utc_offset = '05:30',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Indian Standard Time'
},
= {
abbr = 'SLST',
utc_offset = '05:30',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Sri Lanka Standard Time'
},
= {
abbr = 'NPT',
dst_abbr = '',
utc_offset = '05:45',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Nepal Time'
},
= {
abbr = 'BST',
utc_offset = '06:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Bangladesh Standard Time'
},
= {
abbr = 'OMST',
dst_abbr = '',
utc_offset = '06:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Omsk Time'
},
= {
abbr = 'MMT',
dst_abbr = '',
utc_offset = '06:30',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Myanmar Standard Time'
},
= {
abbr = 'KRAT',
dst_abbr = '',
utc_offset = '07:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Krasnoyarsk Time'
},
= { -- western indonesia
abbr = 'WIB',
dst_abbr = '',
utc_offset = '07:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Time in Indonesia'
},
= {
abbr = 'AWST',
dst_abbr = '',
utc_offset = '08:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Time in Australia'
},
= { -- same as China standard time (CST)
abbr = 'BT',
dst_abbr = '',
utc_offset = '08:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Time in China'
},
= {
abbr = 'IRKT',
dst_abbr = '',
utc_offset = '08:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Irkutsk Time'
},
= {
abbr = 'MYT',
dst_abbr = '',
utc_offset = '08:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Time in Malaysia'
},
= {
abbr = 'PHT',
dst_abbr = '',
utc_offset = '08:00',
df = 'mdy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Philippine Standard Time',
},
= {
abbr = 'SST',
dst_abbr = '',
utc_offset = '08:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Singapore Standard Time',
},
= { -- central
abbr = 'WITA',
dst_abbr = '',
utc_offset = '08:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Time in Indonesia'
},
= {
abbr = 'JST',
dst_abbr = '',
utc_offset = '09:00',
df = 'iso',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Japan Standard Time'
},
= {
abbr = 'PYT',
dst_abbr = '',
utc_offset = '09:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Time in North Korea'
},
= {
abbr = 'KST',
dst_abbr = '',
utc_offset = '09:00',
df = 'iso',
dst_begins = '',
dst_ends = '',
dst_time = '',
dst_e_time = '',
article = 'Time in South Korea'
},
= { -- eastern Indonesia (same as old template's eit)
abbr = 'WIT',
dst_abbr = '',
utc_offset = '09:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Time in Indonesia'
},
= {
abbr = 'YAKT',
dst_abbr = '',
utc_offset = '09:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Yakutsk Time'
},
= { -- Northern Territory, South Australia time
abbr = 'ACST',
dst_abbr = 'ACDT',
utc_offset = '09:30',
df = 'dmy',
dst_begins = 'first Sunday in October',
dst_ends = 'first Sunday in April',
dst_time = '02:00',
dst_e_time = '03:00',
article = 'Time in Australia'
},
= { -- QLD, NSW, TAS, VIC, ACT
abbr = 'AEST',
dst_abbr = 'AEDT',
utc_offset = '10:00',
df = 'dmy',
dst_begins = 'first Sunday in October',
dst_ends = 'first Sunday in April',
dst_time = '02:00', -- begins at 02:00 AEST
dst_e_time = '03:00', -- ends at 02:00 AEST which is 03:00 AEDT
article = 'Time in Australia'
},
= {
abbr = 'ChST',
dst_abbr = '',
utc_offset = '10:00',
df = 'mdy', -- because a US territory?
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Chamorro Time Zone'
},
= {
abbr = 'VLAT',
dst_abbr = '',
utc_offset = '10:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Vladivostok Time'
},
= {
abbr = 'MAGT',
dst_abbr = '',
utc_offset = '11:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Magadan Time'
},
= {
abbr = 'SRET',
dst_abbr = '',
utc_offset = '11:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Srednekolymsk Time'
},
= {
abbr = 'NZST',
dst_abbr = 'NZDT',
utc_offset = '12:00',
df = 'dmy',
dst_begins = 'last Sunday in September',
dst_ends = 'first Sunday in April',
dst_time = '02:00', -- begins at 02:00 NZST
dst_e_time = '03:00', -- ends at 02:00 NZST which is 03:00 NZDT
article = 'Time in New Zealand'
},
= {
abbr = 'PETT',
dst_abbr = '',
utc_offset = '12:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Kamchatka Time'
},
= { -- international dateline east
abbr = 'IDLE',
dst_abbr = '',
utc_offset = '12:00',
df = 'iso',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'UTC+12:00'
},
------------------------------< W E S T U T C - H H : M M >--------------------------------------------------
= { -- western greenland time? Not for Thule Airbase which observes US DST rules; requires own properties
abbr = 'WGT',
dst_abbr = 'WGST', -- ??? what is the correct abbreviation?
utc_offset = '-02:00',
df = 'dmy',
dst_begins = 'last Sunday in March',
dst_ends = 'last Sunday in October',
dst_time = '01:00 UTC',
article = 'Time in Denmark'
},
= {
abbr = 'GFT',
dst_abbr = '',
utc_offset = '-03:00',
df = 'dmy',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'French Guiana Time'
},
= {
abbr = 'PMST',
dst_abbr = 'PMDT',
utc_offset = '-03:00',
df = 'dmy', -- because France
dst_begins = '2nd Sunday in March', -- North American rules
dst_ends = '1st Sunday in November',
dst_time = '02:00',
article = 'UTC−03:00'
},
= {
abbr = 'NST',
dst_abbr = 'NDT',
utc_offset = '-03:30',
df = 'dmy',
dst_begins = '2nd Sunday in March',
dst_ends = '1st Sunday in November',
dst_time = '02:00',
article = 'Newfoundland Standard Time'
},
= {
abbr = 'AST',
dst_abbr = 'ADT',
utc_offset = '-04:00',
df = 'dmy',
dst_begins = '2nd Sunday in March',
dst_ends = '1st Sunday in November',
dst_time = '02:00',
article = 'Atlantic Time Zone'
},
= {
abbr = 'EST',
dst_abbr = 'EDT',
utc_offset = '-05:00',
df = 'mdy',
dst_begins = '2nd Sunday in March',
dst_ends = '1st Sunday in November',
dst_time = '02:00',
article = 'Eastern Time Zone'
},
= {
abbr = 'CST',
dst_abbr = 'CDT',
utc_offset = '-06:00',
df = 'mdy',
dst_begins = '2nd Sunday in March',
dst_ends = '1st Sunday in November',
dst_time = '02:00',
article = 'Central Time Zone'
},
= {
abbr = 'MST',
dst_abbr = 'MDT',
utc_offset = '-07:00',
df = 'mdy',
dst_begins = '2nd Sunday in March',
dst_ends = '1st Sunday in November',
dst_time = '02:00',
article = 'Mountain Time Zone'
},
= {
abbr = 'PST',
dst_abbr = 'PDT',
utc_offset = '-08:00',
df = 'mdy',
dst_begins = '2nd Sunday in March',
dst_ends = '1st Sunday in November',
dst_time = '02:00',
article = 'Pacific Time Zone'
},
= {
abbr = 'AKST',
dst_abbr = 'AKDT',
utc_offset = '-09:00',
df = 'mdy',
dst_begins = '2nd Sunday in March',
dst_ends = '1st Sunday in November',
dst_time = '02:00',
article = 'Alaska Time Zone'
},
= { -- same as AleutST and HAST
abbr = 'HST',
dst_abbr = 'HDT',
utc_offset = '-10:00',
df = 'mdy',
dst_begins = '2nd Sunday in March',
dst_ends = '1st Sunday in November',
dst_time = '02:00',
article = 'Hawaii–Aleutian Time Zone'
},
= { -- international dateline west
abbr = 'IDLW',
dst_abbr = '',
utc_offset = '-12:00',
df = 'iso',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'UTC−12:00'
},
= { -- last location for any date
abbr = 'AoE',
dst_abbr = '',
utc_offset = '-12:00',
df = 'iso',
dst_begins = '',
dst_ends = '',
dst_time = '',
article = 'Anywhere on Earth'
},
------------------------------< M I L I T A R Y >--------------------------------------------------------------
-- {{cite web |url=http://wwp.greenwichmeantime.com/info/timezone.htm |title=Military and Civilian Time Designations |accessdate=2016-03-25 |website=Greenwich Mean Time}}
--http://astro.ukho.gov.uk/nao/miscellanea/WMTZ/Wmtz160224.pdf
= {abbr = 'A', utc_offset = '01:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'B', utc_offset = '02:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'C', utc_offset = '03:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'C*', utc_offset = '03:30', df = 'iso', article = 'List of military time zones'},
= {abbr = 'D', utc_offset = '04:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'D*', utc_offset = '04:30', df = 'iso', article = 'List of military time zones'},
= {abbr = 'E', utc_offset = '05:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'E*', utc_offset = '05:30', df = 'iso', article = 'List of military time zones'},
= {abbr = 'E†', utc_offset = '05:45', df = 'iso', article = 'List of military time zones'},
= {abbr = 'F', utc_offset = '06:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'F*', utc_offset = '06:30', df = 'iso', article = 'List of military time zones'},
= {abbr = 'G', utc_offset = '07:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'H', utc_offset = '08:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'H*', utc_offset = '08:30', df = 'iso', article = 'List of military time zones'},
= {abbr = 'I', utc_offset = '09:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'I*', utc_offset = '09:30', df = 'iso', article = 'List of military time zones'},
= {abbr = 'K', utc_offset = '10:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'K*', utc_offset = '10:30', df = 'iso', article = 'List of military time zones'},
= {abbr = 'L', utc_offset = '11:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'L*', utc_offset = '11:30', df = 'iso', article = 'List of military time zones'},
= {abbr = 'M', utc_offset = '12:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'M‡', utc_offset = '12:45', df = 'iso', article = 'List of military time zones'},
= {abbr = 'M*', utc_offset = '13:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'M†', utc_offset = '14:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'N', utc_offset = '-01:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'O', utc_offset = '-02:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'P', utc_offset = '-03:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'P*', utc_offset = '-03:30', df = 'iso', article = 'List of military time zones'},
= {abbr = 'Q', utc_offset = '-04:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'Q*', utc_offset = '-04:30', df = 'iso', article = 'List of military time zones'},
= {abbr = 'R', utc_offset = '-05:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'S', utc_offset = '-06:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'T', utc_offset = '-07:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'U', utc_offset = '-08:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'U*', utc_offset = '-08:30', df = 'iso', article = 'List of military time zones'},
= {abbr = 'V', utc_offset = '-09:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'V*', utc_offset = '-09:30', df = 'iso', article = 'List of military time zones'},
= {abbr = 'W', utc_offset = '-10:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'X', utc_offset = '-11:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'Y', utc_offset = '-12:00', df = 'iso', article = 'List of military time zones'},
= {abbr = 'Z', utc_offset = '±00:00', df = 'iso', article = 'List of military time zones'},
------------------------------< U T C O F F S E T S >--------------------------------------------------------
-- this table entry filled by the code in time()
= {abbr = '', utc_offset = '', df = 'iso', article = ''},
}; -- end of tz_data table
--[[--------------------------< E X P O R T E D T A B L E S >------------------------------------------------
]]
return {
cfg = cfg,
tz_aliases = tz_aliases,
tz_data = tz_data,
}