Bitrix API

DateInfo

Class DateInfo is responsible for holding information based on a particular date that is applicable to a Rule.

Table of Contents

Properties

$dayOfWeek  : int
$dayOfWeekYearDay1  : int
$dt  : DateTime
$mDayMask  : array<string|int, mixed>
$mDayMaskNeg  : array<string|int, mixed>
$mMask  : array<string|int, mixed>
$monthLength  : int
$mRanges  : array<string|int, mixed>
$nextYearLength  : int
$wDayMask  : array<string|int, mixed>
$yearLength  : int

Properties

$dayOfWeek

public int $dayOfWeek

Day of week

$dayOfWeekYearDay1

public int $dayOfWeekYearDay1

Day of week of the year's first day

$mDayMask

public array<string|int, mixed> $mDayMask

Month-daynumber for each day of the year.

$mDayMaskNeg

public array<string|int, mixed> $mDayMaskNeg

Month-daynumber for each day of the year (in reverse).

$mMask

public array<string|int, mixed> $mMask

Month number for each day of the year.

$monthLength

public int $monthLength

Number of days in the month.

$mRanges

public array<string|int, mixed> $mRanges

Day of year of last day of each month.

$nextYearLength

public int $nextYearLength

Number of days in the next year (365 normally, 366 on leap years)

$wDayMask

public array<string|int, mixed> $wDayMask

Day of week (0-6) for each day of the year, 0 being Monday

$yearLength

public int $yearLength

Number of days in the year (365 normally, 366 on leap years)


        
On this page

Search results