class_docstr: Wrapper of ``pandas_market_calendars`` for a trading calendar. The package
  ``pandas_market_calendar`` must be installed
  
  Params:
  
    - ``open`` (default ``time.min``)
  
      Regular start of the session
  
    - ``close`` (default ``time.max``)
  
      Regular end of the session
  
    - ``holidays`` (default ``[]``)
  
      List of non-trading days (``datetime.datetime`` instances)
  
    - ``earlydays`` (default ``[]``)
  
      List of tuples determining the date and opening/closing times of days
      which do not conform to the regular trading hours where each tuple has
      (``datetime.datetime``, ``datetime.time``, ``datetime.time`` )
  
    - ``offdays`` (default ``ISOWEEKEND``)
  
      A list of weekdays in ISO format (Monday: 1 -> Sunday: 7) in which the
      market doesn't trade. This is usually Saturday and Sunday and hence the
      default
class_docstr_tok: ["Wrapper","of","``","pandas_market_calendars","``","for","a","trading","calendar",".","The","package","``","pandas_market_calendar","``","must","be","installed","Params",":","-","``","open","``","(","default","``","time.min","``",")","Regular","start","of","the","session","-","``","close","``","(","default","``","time.max","``",")","Regular","end","of","the","session","-","``","holidays","``","(","default","``","[","]","``",")","List","of","non-trading","days","(","``","datetime.datetime","``","instances",")","-","``","earlydays","``","(","default","``","[","]","``",")","List","of","tuples","determining","the","date","and","opening\/closing","times","of","days","which","do","not","conform","to","the","regular","trading","hours","where","each","tuple","has","(","``","datetime.datetime","``",",","``","datetime.time","``",",","``","datetime.time","``",")","-","``","offdays","``","(","default","``","ISOWEEKEND","``",")","A","list","of","weekdays","in","ISO","format","(","Monday",":","1","-",">","Sunday",":","7",")","in","which","the","market","does","n't","trade",".","This","is","usually","Saturday","and","Sunday","and","hence","the","default"]
code: def __init__(self):
      self._earlydays = [x[0] for x in self.p.earlydays]
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from datetime import datetime, timedelta, time
  from .metabase import MetaParams
  from backtrader.utils.py3 import string_types, with_metaclass
  from backtrader.utils import UTC
label_desc: Use image node_id 1 to create a new TradingCalendar object from inherited base classes: TradingCalendarBase with example: obj = TradingCalendar()