Return a generator that return a scalar time value with the specified calendar and unit.
time0 is the starting time. if time_end is not specified, the generator will not stop iterating. unit should take the form UNIT since DATETIME example: days since 0001-01-01 00:00:00
Work in progress. Need to be rewritten using relativedelta