You are here

public function MostPopularInterval::timestamp in Drupal Most Popular 6

Same name and namespace in other branches
  1. 7 classes/intervals.php \MostPopularInterval::timestamp()

Returns the timestamp, relative to the current time, that marks the start of this interval.

Return value

integer A timestamp in the past, or 0 if there is no interval string specified.

File

classes/intervals.php, line 77
Defines a wrapper for the mostpopular_intervals table.

Class

MostPopularInterval
@file Defines a wrapper for the mostpopular_intervals table.

Code

public function timestamp() {
  return !empty($this->string) ? strtotime($this->string) : 0;
}