YetiForce PHP Documentation

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 $dateObject = null ]) : mixed
Parameters
$type :

:: type string

$dateObject : mixed = null
Tags
returns

$dateValue array in the following format $dateValue = Array(0=>$startdate,1=>$enddate)

Return values
mixed

getNextQuarterRange()

Function to get start and end date of next calendar quarter.

public static getNextQuarterRange(int $month[, DateTime $dateObject = null ]) : date
Parameters
$month : int
$dateObject : DateTime = null
Return values
date

range of present quarter

getNextYearRange()

Function to get start and end date of next calendar year.

public static getNextYearRange([mixed &$dateObject = null ]) : date
Parameters
$dateObject : mixed = null
Return values
date

range of next year

getPresentQuarterRange()

Function to get start and end date of present calendar quarter.

public static getPresentQuarterRange(int $month[, DateTime &$dateObject = null ]) : date
Parameters
$month : int
$dateObject : DateTime = null
Return values
date

range of present quarter

getPresentYearRange()

Function to get start and end date of present calendar year.

public static getPresentYearRange([mixed &$dateObject = null ]) : date
Parameters
$dateObject : mixed = null
Return values
date

range of present year

getPreviousQuarterRange()

Function to get start and end date of previous calendar quarter.

public static getPreviousQuarterRange(int $month[, DateTime &$dateObject = null ]) : date
Parameters
$month : int
$dateObject : DateTime = null
Return values
date

range of present quarter

getPreviousYearRange()

Function to get start and end date of past calendar year.

public static getPreviousYearRange([mixed &$dateObject = null ]) : date
Parameters
$dateObject : mixed = null
Return values
date

range of past year

Search results