Content deleted Content added
No edit summary |
No edit summary |
||
Line 8:
local cfg = {
['default_df'] = 'mdy', -- default date format when |<df> and |df= omitted or empty
['df_vals'] = {['dmy']=true, ['dmy12']=true, ['dow']=true, ['mdy']=true, ['mdy12']=true, ['iso']=true, ['y']=true, ['12']=true, ['24']=true};
['err_msg'] = '<span style="font-size:100%" class="error">{{time}} – $1 ([[Template:Time#Error messages|help]])</span>',
['err_text'] = {
Line 19 ⟶ 20:
['unknown_tz'] = 'unknown timezone $1',
},
['format'] = { -- output formatting strings
t12 = 'g:i a', -- time only
t24 = 'H:i',
Line 35 ⟶ 37:
dow = 'l' -- day of the week
},
-- for dst calculations
days = {['sunday'] = 0, ['monday'] = 1, ['tuesday'] = 2, ['wednesday'] = 3, ['thursday'] = 4, ['friday'] = 5, ['saturday'] = 6},
Line 40 ⟶ 43:
['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 = {
['df'] = {'df'},
['dst'] = {'dst'},
['dateonly'] = {'dateonly'},
['timeonly'] = {'timeonly'},
['hide-refresh'] = {'hide-refresh'},
['hide-tz'] = {'hide-tz', 'verbergen-zz'}, -- crude, probably wrong german used as test
['unlink-tz'] = {'unlink-tz'},
}
}
|