DateTimeRange
in package
Table of Contents
- getDateRangeByType() : mixed
- Function that converts string to dates.
- getNextQuarterRange() : date
- Function to get start and end date of next calendar quarter.
- getNextYearRange() : date
- Function to get start and end date of next calendar year.
- getPresentQuarterRange() : date
- Function to get start and end date of present calendar quarter.
- getPresentYearRange() : date
- Function to get start and end date of present calendar year.
- getPreviousQuarterRange() : date
- Function to get start and end date of previous calendar quarter.
- getPreviousYearRange() : date
- Function to get start and end date of past calendar year.
Methods
getDateRangeByType()
Function that converts string to dates.
public
static getDateRangeByType( $type[, mixed|null $dateObject = null ]) : mixed
Parameters
Tags
Return values
mixed —getNextQuarterRange()
Function to get start and end date of next calendar quarter.
public
static getNextQuarterRange(int $month[, object $dateObject = null ]) : date
Parameters
- $month : int
- $dateObject : object = null
Return values
date —range of present quarter
getNextYearRange()
Function to get start and end date of next calendar year.
public
static getNextYearRange([object|string &$dateObject = null ]) : date
Parameters
- $dateObject : object|string = null
-
- date object or string
Return values
date —range of next year
getPresentQuarterRange()
Function to get start and end date of present calendar quarter.
public
static getPresentQuarterRange(int $month[, object &$dateObject = null ]) : date
Parameters
- $month : int
- $dateObject : object = null
Return values
date —range of present quarter
getPresentYearRange()
Function to get start and end date of present calendar year.
public
static getPresentYearRange([object|string &$dateObject = null ]) : date
Parameters
- $dateObject : object|string = null
-
- date object or string
Return values
date —range of present year
getPreviousQuarterRange()
Function to get start and end date of previous calendar quarter.
public
static getPreviousQuarterRange(int $month[, object &$dateObject = null ]) : date
Parameters
- $month : int
- $dateObject : object = null
Return values
date —range of present quarter
getPreviousYearRange()
Function to get start and end date of past calendar year.
public
static getPreviousYearRange([object|string &$dateObject = null ]) : date
Parameters
- $dateObject : object|string = null
-
- date object or string
Return values
date —range of past year