Module:Time/data/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 8:
 
local cfg = {
['default_df'] = 'mdy',
['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>',
Line 33 ⟶ 34:
dow = 'l' -- day of the week
},
-- 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},
}