public static function RulesDateInputEvaluator::gmstrtotime in Rules 7.2
Convert a time string to a GMT (UTC) unix timestamp.
3 calls to RulesDateInputEvaluator::gmstrtotime()
- RulesDateInputEvaluator::evaluate in modules/
rules_core.eval.inc - Overrides RulesDataInputEvaluator::evaluate().
- RulesIntegrationTestCase::testRulesCoreIntegration in tests/
rules.test - Tests the "rules_core" integration.
- rules_ui_element_date_validate in ui/
ui.forms.inc - FAPI validation of a date element.
File
- modules/
rules_core.eval.inc, line 90 - Contains rules core integration needed during evaluation.
Class
- RulesDateInputEvaluator
- A class implementing a rules input evaluator processing date input.
Code
public static function gmstrtotime($date) {
// Pass the current timestamp in UTC to ensure the retrieved time is UTC.
return strtotime($date, time());
}