1.20.x 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

includes/date.class.inc, line 360

Class

BackdropDateTime
Extends PHP DateTime class for use with Backdrop.

Code

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