A date is taken in 'YYYY/MM/DD' format as the second argument, the number of days is taken as a third argument, and also an optional argument as [--step]. First the number of command line arguments ...
def intervalgenerator(begin_date, end_date, interval, interval_count=1, is_fixed=False): """ Generate a non-overlapping set of date intervals from begin_date to end ...