You are here

function _node_registration_strtotime in Node registration 7

Calculates a time from a reference time and strotime offset.

4 calls to _node_registration_strtotime()
NodeRegistrationNodeSettings::max_cancel_time_passed in includes/node_registration.node_settings.inc
Whether the maximum cancellation time for this event has passed.
NodeRegistrationNodeSettings::max_registration_time in includes/node_registration.node_settings.inc
Retrieves the maximum registration time for this event.
NodeRegistrationNodeSettings::reminder_time_passed in includes/node_registration.node_settings.inc
Whether the reminder time for this event has passed.
_node_registration_strtotime_debug in includes/node_registration.api.inc
Returns a message for the strtotime format to show the user in admin forms.

File

includes/node_registration.api.inc, line 46
Registration API functions.

Code

function _node_registration_strtotime($reference, $offset) {
  $offset = _node_registration_strtotime_format($offset);
  if (is_numeric($reference)) {
    return strtotime($offset, $reference);
  }
  return strtotime($reference . ' ' . $offset);
}