You are here

public function FeedsDateTime::hasTime in Feeds 6

Same name and namespace in other branches
  1. 7.2 plugins/FeedsParser.inc \FeedsDateTime::hasTime()
  2. 7 plugins/FeedsParser.inc \FeedsDateTime::hasTime()

Returns whether this object has time set. Used primarily for timezone conversion and fomratting.

@todo currently very simplistic, but effective, see usage

1 call to FeedsDateTime::hasTime()
FeedsDateTime::setTimezone in plugins/FeedsParser.inc
Overrides default DateTime function. Only changes output values if actually had time granularity. This should be used as a "converter" for output, to switch tzs.

File

plugins/FeedsParser.inc, line 615

Class

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

Code

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