Gets the day's name.

@return string
188138
public function getName()
    {
        switch ($this->ofWeek) {
            case Carbon::MONDAY:
                $name = 'Monday';
                break;

            case Carbon::TUESDAY:
                $name = 'Tuesday';
                break;

            case Carbon::WEDNESDAY:
                $name = 'Wednesday';
                break;

            case Carbon::THURSDAY:
                $name = 'Thursday';
                break;

            case Carbon::FRIDAY:
                $name = 'Friday';
                break;

            case Carbon::SATURDAY:
                $name = 'Saturday';
                break;

            case Carbon::SUNDAY:
                $name = 'Sunday';
                break;

            default:
                throw new LogicException;
        }

        return $name;
    }
933790
public function getSchedule()
    {
        return implode(' ', [
                $this->getScheduleMonth(),
                $this->getScheduleWeek(),
                $this->getScheduleDayOfMonth(),
                $this->getScheduleDayOfWeek(),
                $this->getScheduleHour(),
                $this->getScheduleMinute()
            ]);
    }
1122166
public function getBirthday(){
		if(isset($this->_userInfo['birthday'])) {
			$this->_userInfo['birthday'] = str_replace('0000', date('Y'), $this->_userInfo['birthday']);
			$result = date('d.m.Y', strtotime($this->_userInfo['birthday']));
			}
		else {
			$result = null;
			}
		return $result;
		}
103826
public function get_starting_weekday() {
        global $CFG;

        if (isset($CFG->calendar_startwday)) {
            $firstday = $CFG->calendar_startwday;
        } else {
            $firstday = get_string('firstdayofweek', 'langconfig');
        }

        if (!is_numeric($firstday)) {
            $startingweekday = CALENDAR_DEFAULT_STARTING_WEEKDAY;
        } else {
            $startingweekday = intval($firstday) % 7;
        }

        return get_user_preferences('calendar_startwday', $startingweekday);
    }
1163204
private function getDay($dayNumber)
    {
        return isset($this->days[$dayNumber]) ? $this->days[$dayNumber] : null;
    }
932359
public function getFrequencyDescription(): string
    {
        $data = $this->attributes["Recurrence"];
        if ($data === "ONCE") {
            return "Once";
        }
        if ($data === "DAILY") {
            return "Daily";
        }
        if ($data === "WEEKDAYS") {
            return "Weekdays";
        }
        if ($data === "WEEKENDS") {
            return "Weekends";
        }

        $data = $this->getFrequency();
        $days = [
            AlarmInterface::MONDAY    =>  "Mon",
            AlarmInterface::TUESDAY   =>  "Tues",
            AlarmInterface::WEDNESDAY =>  "Wed",
            AlarmInterface::THURSDAY  =>  "Thurs",
            AlarmInterface::FRIDAY    =>  "Fri",
            AlarmInterface::SATURDAY  =>  "Sat",
            AlarmInterface::SUNDAY    =>  "Sun",
        ];
        $description = "";
        foreach ($days as $key => $val) {
            if ($data & $key) {
                if (strlen($description) > 0) {
                    $description .= ",";
                }
                $description .= $val;
            }
        }
        return $description;
    }
238370
protected function formatDayOfYear(): string
    {
        return I18N::digits($this->minimum_julian_day - $this->calendar->ymdToJd($this->year, 1, 1));
    }
181701
protected function formatDayZeros(): string
    {
        if ($this->day > 9) {
            return I18N::digits($this->day);
        }

        return I18N::digits('0' . $this->day);
    }
707664
public function getLastWorkingDayMonty()
    {
        $ts = $this->ultimoDiaMes();
        while (! $this->checkDiaUtil($ts)) {
            $ts = strtotime("-1 day", $ts);
        }

        return $this->returnDateObj($ts);
    }
182625
public function days()
    {
        if (!isset($this->days)) {
            $clonedStart = clone $this->weekStart;
            $this->days = array();
            for ($i = 0; $i < 7; $i ++) {
                $thisDay = new Day($clonedStart);

                if (
                    $this->containingMonth
                    && $this->containingMonth->firstDay()->format('m') != $clonedStart->format('m')
                ) {
                    $thisDay->setIsOverflow(true);
                }

                $this->days[] = $thisDay;
                $clonedStart->modify('+1 day');
            }
        }
        return $this->days;
    }
1315538
def get_i18n_day_name(day_nb, display='short', ln=None):
    
    ln = default_ln(ln)
    _ = gettext_set_language(ln)
    if display == 'short':
        days = {0: _("Sun"),
                1: _("Mon"),
                2: _("Tue"),
                3: _("Wed"),
                4: _("Thu"),
                5: _("Fri"),
                6: _("Sat")}
    else:
        days = {0: _("Sunday"),
                1: _("Monday"),
                2: _("Tuesday"),
                3: _("Wednesday"),
                4: _("Thursday"),
                5: _("Friday"),
                6: _("Saturday")}

    return days[day_nb]
871710
public function getFilename()
    {
        if ($handler = $this->filenameHandler) {
            return $handler($this);
        }

        if ($this->splitType === 'hour') {
            return $this->name . '.' . date('Ymd_H') . '.log';
        }

        return $this->name . '.' . date('Ymd') . '.log';
    }
1203802
private function setDay()
    {
        return [
            1 => $this->app->trans('phraseanet::jours:: lundi'),
            2 => $this->app->trans('phraseanet::jours:: mardi'),
            3 => $this->app->trans('phraseanet::jours:: mercredi'),
            4 => $this->app->trans('phraseanet::jours:: jeudi'),
            5 => $this->app->trans('phraseanet::jours:: vendredi'),
            6 => $this->app->trans('phraseanet::jours:: samedi'),
            7 => $this->app->trans('phraseanet::jours:: dimanche')];
    }
216451
public function getDateRange()
    {
        $fields = $this->getFields();
        if (!empty($this->start) && empty($this->end)) {
            return 'since ' . $fields['start']->formattedValue;
        } elseif (empty($this->start) && !empty($this->end)) {
            return 'until ' . $fields['end']->formattedValue;
        } else {
            return implode(' – ', [$fields['start']->formattedValue, $fields['end']->formattedValue]);
        }
    }
1239913
public function getName()
    {
        $parts = [
            $this->company->getRuc(),
            '40',
            $this->getSerie(),
            $this->getCorrelativo(),
        ];

        return join('-', $parts);
    }
583149
public static Integer getDay(Day day)
   {
      Integer result = null;
      if (day != null)
      {
         result = DAY_MAP.get(day);
      }
      return (result);
   }
212957
public function getLocalizedShortString()
    {
        //"Mon 15 Aug"
        $date     = $this->getDateStart();
        $out = $date->getLocalized(Date::DATE_FORMAT_DAY_MONTH);
        return $out;
    }