added getDaysAsObj as export