Add template functions to get week of year