You are here

function _node_expire_is_valid_time_stamp in Node expire 8

Same name and namespace in other branches
  1. 7 node_expire.nodeapi.inc \_node_expire_is_valid_time_stamp()

Checks timestamp to be valid.

1 call to _node_expire_is_valid_time_stamp()
_node_expire_date_db_to_str in ./node_expire.nodeapi.inc
Convert timestamp int to date string.

File

./node_expire.nodeapi.inc, line 401
Node API integration.

Code

function _node_expire_is_valid_time_stamp($timestamp) {
  return (string) (int) $timestamp === $timestamp && $timestamp <= PHP_INT_MAX && $timestamp >= ~PHP_INT_MAX;
}