You are here

public function DateObject::completeDate in Date 7

Same name and namespace in other branches
  1. 7.3 date_api/date_api.module \DateObject::completeDate()
  2. 7.2 date_api/date_api.module \DateObject::completeDate()

Returns whether the input values included a year. Useful to use pseudo date objects when we only are interested in the time.

File

date_api/date_api.module, line 306
This module will make the date API available to other modules. Designed to provide a light but flexible assortment of functions and constants, with more functionality in additional files that are not loaded unless other modules specifically include them.

Class

DateObject
Extend PHP DateTime class with granularity handling, merge functionality and slightly more flexible initialization parameters.

Code

public function completeDate() {
  return $this->completeDate;
}