public function DateObject::removeGranularity in Date 7.3
Same name and namespace in other branches
- 7 date_api/date_api.module \DateObject::removeGranularity()
- 7.2 date_api/date_api.module \DateObject::removeGranularity()
Removes a granularity entry from the array.
Parameters
string $g: A single date part.
File
- date_api/
date_api.module, line 428 - This module will make the date API available to other modules.
Class
- DateObject
- Extend PHP DateTime class.
Code
public function removeGranularity($g) {
if (($key = array_search($g, $this->granularity)) !== FALSE) {
unset($this->granularity[$key]);
}
}