Quarter
Works with quarters
Table of Contents
Constants
- Q1 = 1
- Q1_END = 3
- Q1_START = 1
- Q2 = 2
- Q2_END = 6
- Q2_START = 4
- Q3 = 3
- Q3_END = 9
- Q3_START = 7
- Q4 = 4
- Q4_END = 12
- Q4_START = 10
Methods
- get() : int
- Gets number of quarter by Bitrix\Main\Type\Date object
- getCurrent() : int
- Gets current number of quarter
- getEndDate() : string
- Gets end date of quarter
- getStartDate() : string
- Gets start date of quarter
Constants
Q1
public
mixed
Q1
= 1
Q1_END
public
mixed
Q1_END
= 3
Q1_START
public
mixed
Q1_START
= 1
Q2
public
mixed
Q2
= 2
Q2_END
public
mixed
Q2_END
= 6
Q2_START
public
mixed
Q2_START
= 4
Q3
public
mixed
Q3
= 3
Q3_END
public
mixed
Q3_END
= 9
Q3_START
public
mixed
Q3_START
= 7
Q4
public
mixed
Q4
= 4
Q4_END
public
mixed
Q4_END
= 12
Q4_START
public
mixed
Q4_START
= 10
Methods
get()
Gets number of quarter by Bitrix\Main\Type\Date object
public
static get(Date $date) : int
Parameters
- $date : Date
Return values
intgetCurrent()
Gets current number of quarter
public
static getCurrent() : int
Return values
intgetEndDate()
Gets end date of quarter
public
static getEndDate(int $quarter, int $year) : string
Parameters
- $quarter : int
- $year : int
Return values
stringgetStartDate()
Gets start date of quarter
public
static getStartDate(int $quarter, int $year) : string
Parameters
- $quarter : int
- $year : int