1 date.class.inc | public BackdropDateTime::addGranularity($g) |
Adds a granularity entry to the array.
Parameters
string $g: A single date part.
File
- core/
includes/ date.class.inc, line 265
Class
- BackdropDateTime
- Extends PHP DateTime class for use with Backdrop.
Code
public function addGranularity($g) {
$this->granularity[] = $g;
$this->granularity = array_unique($this->granularity);
}