use flattenAndPutDataInFolder instead of createPeriodicDataset
provide using getMinuteDatesOnEitherSide from TimeUtils