ape.infrastructure.timemap.AbsoluteTime

class ape.infrastructure.timemap.AbsoluteTime(default=None, ignoretz=False, tzinfos=None, dayfirst=False, yearfirst=False, fuzzy=True, parserinfo=None)

A container for the dateutil.parser.parse

AbsoluteTime constructor

Param:
  • default: datetime object to use to supply missing fields
  • ignoretz: if true, ignore timezone information in string
  • tzinfos: dict or function that provides custom timezone information
  • dayfirst: if true, ambiguous dates assume DD-MM-YY first
  • yearfirst: if true, ambiguous dates assume YY-MM-DD
  • fuzzy: if true, ignore unrecognizable tokens
  • parserinfo: parserinfo class that changes the behavior of the parser
__init__(default=None, ignoretz=False, tzinfos=None, dayfirst=False, yearfirst=False, fuzzy=True, parserinfo=None)

AbsoluteTime constructor

Param:
  • default: datetime object to use to supply missing fields
  • ignoretz: if true, ignore timezone information in string
  • tzinfos: dict or function that provides custom timezone information
  • dayfirst: if true, ambiguous dates assume DD-MM-YY first
  • yearfirst: if true, ambiguous dates assume YY-MM-DD
  • fuzzy: if true, ignore unrecognizable tokens
  • parserinfo: parserinfo class that changes the behavior of the parser

Methods

__init__([default, ignoretz, tzinfos, ...]) AbsoluteTime constructor
log_error(error[, message]) Logs the error in bold red

Attributes

logger
return:A logging object.
log_error(error, message='')

Logs the error in bold red

Param:
  • error: error type (prefix in red and bold)
  • message: descriptive message (red but not bold)
logger
Returns:A logging object.

Navigation