Bitrix API

Weekday

Class Weekday is a storage container for a day of the week.

Table of Contents

Properties

$num  : int
$weekday  : string
Weekday number.

Methods

__construct()  : mixed
__toString()  : mixed

Properties

$num

public int $num

nth occurrence of the weekday

$weekday

Weekday number.

public string $weekday

0 = Sunday 1 = Monday 2 = Tuesday 3 = Wednesday 4 = Thursday 5 = Friday 6 = Saturday

Methods

__construct()

public __construct(int|string $weekday, null|int $num) : mixed
Parameters
$weekday : int|string

0-6 or MO..SU

$num : null|int
Tags
throws
InvalidWeekday

__toString()

public __toString() : mixed

        
On this page

Search results