You are here

function commerce_license_get_time in Commerce License 7

Returns the current timestamp.

Should be used for all licensing purposes instead of REQUEST_TIME, to allow for easier automated testing.

Return value

The current timestamp.

3 calls to commerce_license_get_time()
CommerceLicenseBase::save in includes/plugins/license_type/base.inc
Overrides Entity::save().
CommerceLicenseEntityController::saveRevision in includes/commerce_license.controller.inc
Overrides EntityBundlePluginEntityController::saveRevision().
commerce_license_complete_checkout_ajax_callback in includes/commerce_license.checkout_pane.inc
Ajax callback for the license completion message checkout pane.

File

./commerce_license.module, line 52
Provides a framework for selling access to local or remote resources.

Code

function commerce_license_get_time() {
  return commerce_license_set_time();
}