code: public int getWeek()
    {
      int dow4th = (int) ((_dayOfEpoch - _dayOfYear + 3) % 7 + 10) % 7;
      int ww1monday = 3 - dow4th;
  
      if (_dayOfYear < ww1monday)
        return 53;
  
      int week = (_dayOfYear - ww1monday) / 7 + 1;
  
      if (_dayOfYear >= 360) {
        int days = 365 + (_isLeapYear ? 1 : 0);
        long nextNewYear = (_dayOfEpoch - _dayOfYear + days);
  
        int dowNext4th = (int) ((nextNewYear + 3) % 7 + 10) % 7;
        int nextWw1Monday = 3 - dowNext4th;
  
        if (days <= _dayOfYear - nextWw1Monday)
          return 1;
      }
  
      return week;
    }
docs: Returns the week in the year.