class documentation

class parserinfo(object): (source)

View In Hierarchy

Class which handles what inputs are accepted. Subclass this to customize the language and acceptable values for each parameter. :param dayfirst: Whether to interpret the first value in an ambiguous 3-integer date (e.g. 01/05/09) as the day (``True``) or month (``False``). If ``yearfirst`` is set to ``True``, this distinguishes between YDM and YMD. Default is ``False``. :param yearfirst: Whether to interpret the first value in an ambiguous 3-integer date (e.g. 01/05/09) as the year. If ``True``, the first number is taken to be the year, otherwise the last number is taken to be the year. Default is ``False``.

Method __init__ Undocumented
Method ampm Undocumented
Method convertyear Converts two-digit years to year within [-50, 49] range of self._year (current local time)
Method hms Undocumented
Method jump Undocumented
Method month Undocumented
Method pertain Undocumented
Method tzoffset Undocumented
Method utczone Undocumented
Method validate Undocumented
Method weekday Undocumented
Constant AMPM Undocumented
Constant HMS Undocumented
Constant JUMP Undocumented
Constant MONTHS Undocumented
Constant PERTAIN Undocumented
Constant TZOFFSET Undocumented
Constant UTCZONE Undocumented
Constant WEEKDAYS Undocumented
Instance Variable dayfirst Undocumented
Instance Variable yearfirst Undocumented
Method _convert Undocumented
Instance Variable _ampm Undocumented
Instance Variable _century Undocumented
Instance Variable _hms Undocumented
Instance Variable _jump Undocumented
Instance Variable _months Undocumented
Instance Variable _pertain Undocumented
Instance Variable _utczone Undocumented
Instance Variable _weekdays Undocumented
Instance Variable _year Undocumented
def __init__(self, dayfirst=False, yearfirst=False): (source)

Undocumented

def ampm(self, name): (source)

Undocumented

def convertyear(self, year, century_specified=False): (source)

Converts two-digit years to year within [-50, 49] range of self._year (current local time)

def hms(self, name): (source)

Undocumented

def jump(self, name): (source)

Undocumented

def month(self, name): (source)

Undocumented

def pertain(self, name): (source)

Undocumented

def tzoffset(self, name): (source)

Undocumented

def utczone(self, name): (source)

Undocumented

def validate(self, res): (source)

Undocumented

def weekday(self, name): (source)

Undocumented

Undocumented

Value
[('am', 'a'), ('pm', 'p')]

Undocumented

Value
[('h', 'hour', 'hours'), ('m', 'minute', 'minutes'), ('s', 'second', 'seconds')]

Undocumented

Value
[' ',
 '.',
 ',',
 ';',
 '-',
 '/',
 '\'',
...
MONTHS: list = (source)

Undocumented

Value
[('Jan', 'January'),
 ('Feb', 'February'),
 ('Mar', 'March'),
 ('Apr', 'April'),
 ('May', 'May'),
 ('Jun', 'June'),
 ('Jul', 'July'),
...
PERTAIN: list[str] = (source)

Undocumented

Value
['of']
TZOFFSET: dict = (source)

Undocumented

Value
{}
UTCZONE: list[str] = (source)

Undocumented

Value
['UTC', 'GMT', 'Z', 'z']
WEEKDAYS: list = (source)

Undocumented

Value
[('Mon', 'Monday'),
 ('Tue', 'Tuesday'),
 ('Wed', 'Wednesday'),
 ('Thu', 'Thursday'),
 ('Fri', 'Friday'),
 ('Sat', 'Saturday'),
 ('Sun', 'Sunday')]
dayfirst = (source)

Undocumented

yearfirst = (source)

Undocumented

def _convert(self, lst): (source)

Undocumented

_ampm = (source)

Undocumented

_century = (source)

Undocumented

_hms = (source)

Undocumented

_jump = (source)

Undocumented

_months = (source)

Undocumented

_pertain = (source)

Undocumented

_utczone = (source)

Undocumented

_weekdays = (source)

Undocumented

_year = (source)

Undocumented