/*[deutsch]
<p>Ermittelt den Wochentag. </p>

@return  Weekday
@since   3.13/4.10
420616
public Weekday getDayOfWeek() {

        Weekday dow = this.weekday;

        if (dow == null) {
            dow = Weekday.valueOf(GregorianMath.getDayOfWeek(this.year, this.month, this.dayOfMonth));
        }

        return dow;

    }
892057
public Weekday getDayOfWeek() {

        long utcDays = getCalendarSystem(this.variant).transform(this);
        return Weekday.valueOf(MathUtils.floorModulo(utcDays + 5, 7) + 1);

    }
693930
private function getWeekDays()
    {
        if (empty(self::$weekDays) && ($this->translator instanceof TranslatorInterface)) {
            self::$weekDays = [
                $this->translator->trans('calendar.weekdays.monday', [], 'default'),
                $this->translator->trans('calendar.weekdays.tuesday', [], 'default'),
                $this->translator->trans('calendar.weekdays.wednesday', [], 'default'),
                $this->translator->trans('calendar.weekdays.thursday', [], 'default'),
                $this->translator->trans('calendar.weekdays.friday', [], 'default'),
                $this->translator->trans('calendar.weekdays.saturday', [], 'default'),
                $this->translator->trans('calendar.weekdays.sunday', [], 'default'),
            ];
        }

        return self::$weekDays;
    }
927907
static DateValue nextWeekStart(DateValue d, Weekday wkst) {
        DTBuilder builder = new DTBuilder(d);
        builder.day += (7 - ((7 + (Weekday.valueOf(d).javaDayNum
                - wkst.javaDayNum)) % 7))
                % 7;
        return builder.toDate();
    }
1020523
protected SortedSet<WeekDay> getWeekDays() {

        SortedSet<WeekDay> result = new TreeSet<>();
        for (CmsCheckBox box : m_checkboxes) {
            if (box.isChecked()) {
                result.add(WeekDay.valueOf(box.getInternalValue()));
            }
        }
        return result;
    }
754422
public com.google.type.DayOfWeek getDayOfWeek() {
    @SuppressWarnings("deprecation")
    com.google.type.DayOfWeek result = com.google.type.DayOfWeek.valueOf(dayOfWeek_);
    return result == null ? com.google.type.DayOfWeek.UNRECOGNIZED : result;
  }
1132012
public Project.Calendars.Calendar.WeekDays.WeekDay createProjectCalendarsCalendarWeekDaysWeekDay()
   {
      return new Project.Calendars.Calendar.WeekDays.WeekDay();
   }
1117774
private static Map<String, Integer> daysOfWeekMapping() {
        final Map<String, Integer> stringMapping = new HashMap<>();
        stringMapping.put("MON", 1);
        stringMapping.put("TUE", 2);
        stringMapping.put("WED", 3);
        stringMapping.put("THU", 4);
        stringMapping.put("FRI", 5);
        stringMapping.put("SAT", 6);
        stringMapping.put("SUN", 7);
        return stringMapping;
    }
367930
public java.util.Map<String, String> getSaturday() {
        if (saturday == null) {
            saturday = new com.amazonaws.internal.SdkInternalMap<String, String>();
        }
        return saturday;
    }
290422
private Variants parseWeekdays(JsonObject calendar, String group) {
    JsonObject node = resolve(calendar, "days", group);
    return new Variants(
        weekdayMap(resolve(node, "abbreviated")),
        weekdayMap(resolve(node, "narrow")),
        weekdayMap(resolve(node, "short")),
        weekdayMap(resolve(node, "wide")));
  }
366469
public int getDay() {
    if (Date_Type.featOkTst && ((Date_Type)jcasType).casFeat_day == null)
      jcasType.jcas.throwFeatMissing("day", "de.julielab.jules.types.Date");
    return jcasType.ll_cas.ll_getIntValue(addr, ((Date_Type)jcasType).casFeatCode_day);}
825082
private static Weekmodel getDefaultWeekmodel() {

        return Weekmodel.of(Weekday.SATURDAY, 1, Weekday.SATURDAY, Weekday.SUNDAY);

    }
1329027
public static function getWeekDays()
    {
        static $weekdays = null;
        if ($weekdays == null) {
            $weekdays   = array();
            for ($i = 0; $i < 7; $i++) {
                $weekdays[$i] = strftime('%A', mktime(0, 0, 0, 1, $i, 2001));
            }
        }
        return $weekdays;
    }
375269
@Override
    public int getFirstDayOfWeek(Locale country) {

        String fw = country.getUnicodeLocaleType("fw");

        if (fw != null) {
            Weekday wd = toEnum(fw);
            if (wd != null) { // else ignore fw-extension
                return wd.getValue();
            }
        }

        if (this.firstDayOfWeek.isEmpty()) {
            // fallback
            GregorianCalendar gc = new GregorianCalendar(country);
            int fd = gc.getFirstDayOfWeek();
            return ((fd == 1) ? 7 : (fd - 1));
        }

        String key = FormatUtils.getRegion(country);
        Weekday first = Weekday.MONDAY;

        if (this.firstDayOfWeek.containsKey(key)) {
            first = this.firstDayOfWeek.get(key);
        }

        return first.getValue();

    }
175754
def method_missing(name, *args)
      add_regex = %r{
        ^([ib])(?:n|ack)?
        (?:\.|_|-| )?
        (\d+)
        (?:\.|_|-| )?
        ([dwmy])
        (?:ays?|eeks?|onths?|ears?)?$
      }x

      weekday_regex = %r{
        ^(tod|tom|y)(?:a?y?|o?r?r?o?w?|e?s?t?e?r?d?a?y?)?$
      }xi
      
      next_weekday_regex = %r{
        ^(n|p)(?:e?x?t|r?e?v?i?o?u?s?)?
        (?:\.|_| |-)?
        (mo|tu|we|th|fr|sa|su)
        (?:n?|e?s?|d?n?e?s?|u?r?s?|i?|t?u?r?|n?)(?:d?a?y?)$ 
      }xi

      next_weekday_in_regex = %r{
        ^(mo|tu|we|th|fr|sa|su)
        (?:n?|e?s?|d?n?e?s?|u?r?s?|i?|t?u?r?|n?)(?:d?a?y?)(?:_?)
        (i|b)
        (?:n?|a?c?k?)(?:_?)
        (\d+)(?:_?)([dwmy])(?:a?y?s?|e?e?k?s?|o?n?t?h?s?|e?a?r?s?)$
      }xi

      return add($1, $2, $3)      if name =~ add_regex
      return weekday($1)          if name =~ weekday_regex
      return next_weekday($1, $2) if name =~ next_weekday_regex
      return next_weekday_in($1, $2, $3, $4) if name =~ next_weekday_in_regex
      super 
    end
1209365
@Nonnegative
  public static DayOfWeek getWeekday (@Nonnull final Weekday eWeekday)
  {
    switch (eWeekday)
    {
      case MONDAY:
        return DayOfWeek.MONDAY;
      case TUESDAY:
        return DayOfWeek.TUESDAY;
      case WEDNESDAY:
        return DayOfWeek.WEDNESDAY;
      case THURSDAY:
        return DayOfWeek.THURSDAY;
      case FRIDAY:
        return DayOfWeek.FRIDAY;
      case SATURDAY:
        return DayOfWeek.SATURDAY;
      case SUNDAY:
        return DayOfWeek.SUNDAY;
      default:
        throw new IllegalArgumentException ("Unknown weekday " + eWeekday);
    }
  }
1110030
private BigInteger getDaysOfTheWeek(RecurringData data)
   {
      int value = 0;
      for (Day day : Day.values())
      {
         if (data.getWeeklyDay(day))
         {
            value = value | DAY_MASKS[day.getValue()];
         }
      }
      return BigInteger.valueOf(value);
   }