# Path: athlib/utils.py
# def isStr(o):
#     '''return true if argument is a string type'''
#     return isinstance(o,(str,bytes))


from datetime import date, timedelta
from dateutil.parser import parse as parse_date
from dateutil.relativedelta import relativedelta
from athlib.utils import isStr

RULE 207 Age groups - Road
The Competition Year extends from 1st September to 31st August in the following
year.
(i) Under 13 Boys and Girls (School Years 7&8 and some year 6)
Road Running competitions for Under 13's shall be confined to competitors who
are age 11 on the day of competition, or 12 on 31st August prior to the
commencement of the Competition Year as defined above.
(ii) Under 15 Boys & Girls (School Years 9 & 10)
Road Running competitions for Under 15's shall be confined to competitors who
are aged 13 or 14 on 31st August prior to the commencement of the Competition
Year as defined above.
(iii) Under 17 Men & Women (School Years 11 & 12)
Road Running competitions for Under 17's shall be confined to competitors who
are 15 or 16 on 31st August prior to the commencement of the Competition Year
as defined above.
(iv) Junior Men & Women
Road Running competitions for Junior Men and Women shall be confined to
competitors who are aged 17, 18 or 19 on 31st August prior to the commencement
of the Competition Year as defined above.
(v) Senior Men & Women
For Road Running competitions a Senior is a competitor who is aged at least 20
years on 31st August prior to the commencement of the Competition Year as
defined above. In Road Relay competitions Junior Men and Women, as appropriate,
may compete in Senior events.
(vi) Masters Men and Women
Road Running events for Masters shall be confined to competitors who are at
least 35 years of age on the date of the competition.
Note:
UK Athletics Rules do not specifically cater for athletes under the age of 11

# Path: athlib/utils.py
# def isStr(o):
#     '''return true if argument is a string type'''
#     return isinstance(o,(str,bytes))


# Path: athlib/uka/agegroups.py
from datetime import date, timedelta
from dateutil.parser import parse as parse_date
from dateutil.relativedelta import relativedelta
from athlib.utils import isStr


RULE 207 Age groups - Road
The Competition Year extends from 1st September to 31st August in the following
year.
(i) Under 13 Boys and Girls (School Years 7&8 and some year 6)
Road Running competitions for Under 13's shall be confined to competitors who
are age 11 on the day of competition, or 12 on 31st August prior to the
commencement of the Competition Year as defined above.
(ii) Under 15 Boys & Girls (School Years 9 & 10)
Road Running competitions for Under 15's shall be confined to competitors who
are aged 13 or 14 on 31st August prior to the commencement of the Competition
Year as defined above.
(iii) Under 17 Men & Women (School Years 11 & 12)
Road Running competitions for Under 17's shall be confined to competitors who
are 15 or 16 on 31st August prior to the commencement of the Competition Year
as defined above.
(iv) Junior Men & Women
Road Running competitions for Junior Men and Women shall be confined to
competitors who are aged 17, 18 or 19 on 31st August prior to the commencement
of the Competition Year as defined above.
(v) Senior Men & Women
For Road Running competitions a Senior is a competitor who is aged at least 20
years on 31st August prior to the commencement of the Competition Year as
defined above. In Road Relay competitions Junior Men and Women, as appropriate,
may compete in Senior events.
(vi) Masters Men and Women
Road Running events for Masters shall be confined to competitors who are at
least 35 years of age on the date of the competition.
Note:
UK Athletics Rules do not specifically cater for athletes under the age of 11

years.