implement week-based-year year numbers in strftime
implement week-based-year year numbers in strftime

in the process, I refactored the week-number code so it can be used by
the week-based-year formats to determine year adjustments at the
boundary values. this also improves indention/code readability.

chardi/musl,chardi/musl,chardi/musl