First version of completePeriodIds with weeks support! Working for global time series.