You are here

function visitors_get_to_timestamp in Visitors 8.2

Same name and namespace in other branches
  1. 8 forms/date_filter.inc \visitors_get_to_timestamp()
  2. 7.2 forms/date_filter.inc \visitors_get_to_timestamp()
  3. 7 forms/date_filter.inc \visitors_get_to_timestamp()
  4. 7.0 forms/date_filter.inc \visitors_get_to_timestamp()

Convert to date value to timestamp.

Return value

returns the Unix timestamp of the session arguments given. If the arguments are invalid, the function returns FALSE (before PHP 5.1 it returned -1).

1 call to visitors_get_to_timestamp()
visitors_date_filter_sql_condition in ./visitors.module
Build sql query from date filter values.

File

./visitors.module, line 237
Logs visitors for your site.

Code

function visitors_get_to_timestamp() {
  $diff = visitors_timezone_diff();
  $to = $_SESSION['visitors_to'];
  return gmmktime(23, 59, 59, $to['month'], $to['day'], $to['year']) - $diff;
}