Modül:Time/data
----------------------------------------------------------------------
for internationalization, this section to hold constant text, parameter names and values, other items subject to
language translation
local cfg = { ['default_df'] = 'mdy', -- default date format when and ['df_vals'] = { ['dmy']=true, ['dmy12']=true, -- also 'y' ['dow']=true, ['mdy']=true, ['mdy12']=true, ['iso']=true, ['y']=true, -- also 'dmy' and 'dmy12' ['12']=true, ['24']=true, }; ['err_msg'] = ' – $1 (help)', ['err_text'] = { ['bad_def'] = 'incomplete definition for $1', ['bad_df_pair'] = 'both of |df-cust-a= and |df-cust-p required', ['bad_dst'] = 'error calculating dst timestamps', ['bad_format'] = 'invalid date format $1', ['bad_sign'] = 'invalid use of ±', ['test_time'] = 'malformed or incomplete _TEST_TIME_', ['unknown_tz'] = 'unknown timezone $1', }, ['format'] = { -- 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-label'] = 'refresh', -- for dst calculations days = {['sunday'] = 0, ['monday'] = 1, ['tuesday'] = 2, ['wednesday'] = 3, ['thursday'] = 4, ['friday'] = 5, ['saturday'] = 6}, months = {['january'] = 1, ['february'] = 2, ['march'] = 3, ['april'] = 4, ['may'] = 5, ['june'] = 6, ['july'] = 7, ['august'] = 8, ['september'] = 9, ['october'] = 10, ['november'] = 11, ['december'] = 12}; ordinals = {['1st'] = 1, ['first'] = 1, ['2nd'] = 2, ['second'] = 2, ['3rd'] = 3, ['third'] = 3, ['4th'] = 4, ['fourth'] = 4, ['5th'] = 5, ['fifth'] = 5, ['last'] = -1}, -- parameter list aliases = { ['dateonly'] = {'dateonly'}, ['df'] = {'df'}, ['df-cust'] = {'df-cust'}, ['df-cust-a'] = {'df-cust-a'}, ['df-cust-p'] = {'df-cust-p'}, ['dst'] = {'dst'}, ['hide-refresh'] = {'hide-refresh'}, ['hide-tz'] = {'hide-tz'}, ['lang'] = {'lang'}, ['timeonly'] = {'timeonly'}, ['unlink-tz'] = {'unlink-tz'}, } }
--------------------------------------------------------------------------------------------
local tz_aliases = { ['british summer time'] = 'gmt-uk', ['irish standard time'] = 'gmt-ie', ['usz1'] = 'kalt', -- old form Kaliningrad time ['west'] = 'wet', -- dst aliases east of utc ['cest'] = 'cet', ['eest'] = 'eet', ['acdt'] = 'acst', ['aedt'] = 'aest', ['nzdt'] = 'nzst', ['at'] = 'ast', -- alternate abbreviations west of utc ['et'] = 'est', ['ct'] = 'cst', ['pt'] = 'pst', ['akt'] = 'akst', ['hast'] = 'hst', ['pmdt'] = 'pmst', -- dst aliases west of utc ['wgst'] = 'wgt', ['ndt'] = 'nst', ['adt'] = 'ast', ['edt'] = 'est', ['cdt'] = 'cst', ['mdt'] = 'mst', ['pdt'] = 'pst', ['akdt'] = 'akst', ['hdt'] = 'hst', ['hadt'] = 'hst', }
--------------------------------------------------------------------------------
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 = {
--------------------------------------------------------------------------------
['utc'] = { 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.