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