Content deleted Content added
synch from live; |
custom df; |
||
Line 10:
['default_df'] = 'mdy', -- default date format when |<df> and |df= omitted or empty
['df_vals'] = {
['dmy']=true,
['dmy12']=true, -- also 'y' ['dow']=true,
['mdy']=true,
['mdy12']=true, ['iso']=true,
['y']=true, -- also 'dmy' and 'dmy12'
['12']=true,
};
Line 22 ⟶ 24:
['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',
Line 36 ⟶ 39:
dmy_date = 'j F Y',
mdy_date = 'F j, Y',
dmy12 = 'g:i a, j F Y', -- 12hr time and date
Line 56 ⟶ 58:
-- parameter list
aliases = {
['dateonly'] = {'dateonly'},▼
['df'] = {'df'},
['df-cust-a'] = {'df-cust-a'},
['df-cust-p'] = {'df-cust-p'},
['dst'] = {'dst'},
▲ ['dateonly'] = {'dateonly'},
▲ ['timeonly'] = {'timeonly'},
['hide-refresh'] = {'hide-refresh'},
['hide-tz'] = {'hide-tz'},
['lang'] = {'lang'},
['timeonly'] = {'timeonly'},
['unlink-tz'] = {'unlink-tz'},
}
|