ppf/date_time/is_business_day.py
def is_business_day(t, financial_centers=None):
  ''' Test whether the given date is a business day.
      In this version, only weekends are considered
      holidays.
  
      >>> from ppf_date_time import date
      >>> from ppf_date_time import months_of_year
      >>> Jun = months_of_year.Jun
      >>> print is_business_day(date(2007, Jun, 27))
      True
      >>> print is_business_day(date(2007, Jun, 30))
      False

  '''
  Saturday, Sunday = weekdays.Saturday, weekdays.Sunday

  return t.day_of_week().as_number() != Saturday \
       and t.day_of_week().as_number() != Sunday
 Test whether the given date is a business day.
      In this version, only weekends are considered
      holidays.
  
      >>> from ppf_date_time import date
      >>> from ppf_date_time import months_of_year
      >>> Jun = months_of_year.Jun
      >>> print is_business_day(date(2007, Jun, 27))
      True
      >>> print is_business_day(date(2007, Jun, 30))
      False

  
Test whether the given date is a business day.
In this version, only weekends are considered
holidays.


Test whether the given date is a business day . In this version only weekends are considered holidays .
def is_business_day(t, financial_centers=None):
  Saturday, Sunday = weekdays.Saturday, weekdays.Sunday
  return t.day_of_week().as_number() != Saturday \
       and t.day_of_week().as_number() != Sunday
def is_business_day ( t , financial_centers = None ) : Saturday , Sunday = weekdays . Saturday , weekdays . Sunday return t . day_of_week ( ) . as_number ( ) != Saturday and t . day_of_week ( ) . as_number ( ) != Sunday
Test whether the given date is a business day.
Test whether the given date is a business day .
''' Test whether the given date is a business day.
      In this version, only weekends are considered
      holidays.
  
      >>> from ppf_date_time import date
      >>> from ppf_date_time import months_of_year
      >>> Jun = months_of_year.Jun
      >>> print is_business_day(date(2007, Jun, 27))
      True
      >>> print is_business_day(date(2007, Jun, 30))
      False

  '''
t
financial_centers