trait DateTrait (View source)

Methods

getDate(string $period)

Get QueryDate object from period name.

Details

QueryDate getDate(string $period)

Get QueryDate object from period name.

e.g. "yesterday" => QueryDate(period = "day", date = "yesterday")

Parameters

string $period

Return Value

QueryDate