You are here

function pay::timestamp_value in Pay 6

Same name and namespace in other branches
  1. 7 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 85
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 = time();
  }
  if (!is_numeric($val)) {
    $val = strtotime($val);
  }
  return (int) $val;
}