You are here

function pay::timestamp_value in Pay 7

Same name and namespace in other branches
  1. 6 includes/handlers/pay.inc \pay::timestamp_value()
3 calls to pay::timestamp_value()
pay::set_completed in includes/handlers/pay.inc
pay::set_created in includes/handlers/pay.inc
pay::set_timestamp in includes/handlers/pay.inc

File

includes/handlers/pay.inc, line 87
The base class for the Payment API.

Class

pay
@file The base class for the Payment API.

Code

function timestamp_value($val = NULL) {
  if (!$val) {
    $val = REQUEST_TIME;
  }
  if (!is_numeric($val)) {
    $val = strtotime($val);
  }
  return (int) $val;
}