Returns current day of week

@return int
17163
public static function getCurrentDayOfWeek()
    {
        $now = new DateTime();

        $year = $now->format('Y');
        $month = $now->format('m');
        $day = $now->format('d');

        return self::getDayOfWeek($year, $month, $day);
    }
632520
public com.google.api.ads.admanager.axis.v201808.DayOfWeek getDayOfWeek() {
        return dayOfWeek;
    }
1090188
protected function getDays()
    {
        $intSecondsPerDay = ($this->isPositive()) ? DateTimeSpan::SECONDS_PER_DAY : ((-1) * DateTimeSpan::SECONDS_PER_DAY);
        $intDays = floor($this->intSeconds / $intSecondsPerDay);
        if ($this->isNegative()) {
            $intDays = (-1) * $intDays;
        }
        return $intDays;
    }
54825
public function endOfWeek()
        {
            if ($this->dayOfWeek != self::SUNDAY) $this->next(self::SUNDAY);

            return $this->endOfDay();
        }
743892
public function getDateTimeForWeekView()
    {
        $startTime = new \DateTime('2004-06-28 '.$this->getStartTime().':00');

        while ($startTime->format('N') < $this->getDayOfWeekNumber())
        {
            $startTime->add(new \DateInterval('P1D'));
        }

        return $startTime;
    }
673797
public Weekday getDayOfWeek() {

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

    }
699978
public function getDays()
	{
		return @isset( $this->Value->daysOnly ) && $this->Value->daysOnly && $this->Value->days ? $this->Value->days : $this->Value->d;
		return $this->Value->d;
	}
558746
public DayOfTheWeek previous() {
        if (this == PH) {
            return null;
        }
        final int nextId = id - 1;
        for (final DayOfTheWeek dow : ALL) {
            if (dow.id == nextId) {
                return dow;
            }
        }
        return SUN;
    }
420616
public Weekday getDayOfWeek() {

        Weekday dow = this.weekday;

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

        return dow;

    }
891209
public function getFirstLetter()
    {
        switch ($this->day_of_week_number)
        {
            case self::MON: return 'M';
            case self::TUE: return 'T';
            case self::WED: return 'W';
            case self::THU: return 'T';
            case self::FRI: return 'F';
            case self::SAT: return 'S';
            case self::SUN: return 'S';
        }
    }
661328
public function getDefaultValue()
    {
        return is_array($this->default_value) ? $this->default_value : [
            Carbon::now()->subWeek()->format('Y-m-d'),
            Carbon::now()->format('Y-m-d'),
        ];
    }
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;
    }
919367
public int getDay()
    {
        Timestamp adjusted = this;
        if (this._offset != null) {
            if (this._offset.intValue() != 0) {
                adjusted = make_localtime();
            }
        }
        return adjusted._day;
    }
1241413
public function isDue()
    {
        $cron = App::make('Cron\CronExpression', [$this->scheduler->getCronSchedule()]);

        // if a week is defined, so some special weekly stuff
        if ($this->scheduler->getScheduleWeek() !== Scheduler::NONE) {
            return $this->thisWeek() && $cron->isDue();
        }

        //otherwise us only standard cron scheduling
        return $cron->isDue();
    }
116117
def get_week_start(day=None):
    """"""
    day = add_timezone(day or datetime.date.today())
    days_since_monday = day.weekday()
    if days_since_monday != 0:
        day = day - relativedelta(days=days_since_monday)
    return day
1202762
public static function getDateWeekAgo()
    {
        // today
        $date = new \DateTime(date('Y-m-d'));
        // minus 7 days
        $date = $date->sub(new \DateInterval('P7D'));
        return $date->format('Y-m-d');
    }
1318323
public function atDay(int $dayOfWeek) : LocalDate
    {
        Field\DayOfWeek::check($dayOfWeek);

        $correction = LocalDate::of($this->year, 1, 4)->getDayOfWeek()->getValue() + 3;
        $dayOfYear = $this->week * 7 + $dayOfWeek - $correction;
        $maxDaysOfYear = Field\Year::isLeap($this->year) ? 366 : 365;

        if ($dayOfYear > $maxDaysOfYear) {
            return LocalDate::ofYearDay($this->year + 1, $dayOfYear - $maxDaysOfYear);
        }

        if ($dayOfYear > 0) {
            return LocalDate::ofYearDay($this->year, $dayOfYear);
        }

        $daysOfPreviousYear = Field\Year::isLeap($this->year - 1) ? 366 : 365;

        return LocalDate::ofYearDay($this->year - 1, $daysOfPreviousYear + $dayOfYear);
    }