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"]
docstr: Returns the next trading day (datetime/date instance) after ``day``
  (datetime/date instance) and the isocalendar components
  
  The return value is a tuple with 2 components: (nextday, (y, w, d))
docstr_tok: ["Returns","the","next","trading","day","(","datetime\/date","instance",")","after","``","day","``","(","datetime\/date","instance",")","and","the","isocalendar","components","The","return","value","is","a","tuple","with","2","components",":","(","nextday",",","(","y",",","w",",","d",")",")"]
code: def _nextday(self, day):
      """
      Returns the next trading day (datetime/date instance) after ``day``
      (datetime/date instance) and the isocalendar components
  
      The return value is a tuple with 2 components: (nextday, (y, w, d))
      """
      while True:
          day += ONEDAY
          isocal = day.isocalendar()
          if isocal[2] in self.p.offdays or day in self.p.holidays:
              continue
  
          return day, isocal
  
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 2 for calling the TradingCalendar obj's underlying member method code with example usage: obj._nextday(day) and returns: day,  isocal