1 date.class.inc public BackdropDateTime::hasTime()

Returns whether this object has time set.

Used primarily for timezone conversion and formatting.

Return value

bool: TRUE if the date contains time parts, FALSE otherwise.

File

core/includes/date.class.inc, line 380

Class

BackdropDateTime
Extends PHP DateTime class for use with Backdrop.

Code

public function hasTime() {
  return $this->hasGranularity('hour');
}