2005-07-13 09:25:57 +08:00
|
|
|
"Commonly-used date structures"
|
|
|
|
|
2005-11-04 12:59:46 +08:00
|
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
|
2005-07-13 09:25:57 +08:00
|
|
|
WEEKDAYS = {
|
2005-11-04 12:59:46 +08:00
|
|
|
0:_('Monday'), 1:_('Tuesday'), 2:_('Wednesday'), 3:_('Thursday'), 4:_('Friday'),
|
|
|
|
5:_('Saturday'), 6:_('Sunday')
|
2005-07-13 09:25:57 +08:00
|
|
|
}
|
|
|
|
WEEKDAYS_REV = {
|
|
|
|
'monday':0, 'tuesday':1, 'wednesday':2, 'thursday':3, 'friday':4,
|
|
|
|
'saturday':5, 'sunday':6
|
|
|
|
}
|
|
|
|
MONTHS = {
|
2005-11-04 12:59:46 +08:00
|
|
|
1:_('January'), 2:_('February'), 3:_('March'), 4:_('April'), 5:_('May'), 6:_('June'),
|
|
|
|
7:_('July'), 8:_('August'), 9:_('September'), 10:_('October'), 11:_('November'),
|
|
|
|
12:_('December')
|
2005-07-13 09:25:57 +08:00
|
|
|
}
|
|
|
|
MONTHS_3 = {
|
|
|
|
1:'jan', 2:'feb', 3:'mar', 4:'apr', 5:'may', 6:'jun', 7:'jul', 8:'aug',
|
|
|
|
9:'sep', 10:'oct', 11:'nov', 12:'dec'
|
|
|
|
}
|
|
|
|
MONTHS_3_REV = {
|
|
|
|
'jan':1, 'feb':2, 'mar':3, 'apr':4, 'may':5, 'jun':6, 'jul':7, 'aug':8,
|
|
|
|
'sep':9, 'oct':10, 'nov':11, 'dec':12
|
|
|
|
}
|
|
|
|
MONTHS_AP = { # month names in Associated Press style
|
2005-11-04 12:59:46 +08:00
|
|
|
1:_('Jan.'), 2:_('Feb.'), 3:_('March'), 4:_('April'), 5:_('May'), 6:_('June'), 7:_('July'),
|
|
|
|
8:_('Aug.'), 9:_('Sept.'), 10:_('Oct.'), 11:_('Nov.'), 12:_('Dec.')
|
2005-07-13 09:25:57 +08:00
|
|
|
}
|