public static function Utilities::generateTimestamp in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8
2 calls to Utilities::generateTimestamp()
File
- src/
Utilities.php, line 281
Class
- Utilities
- This file is part of miniOrange SAML plugin.
Namespace
Drupal\miniorange_samlCode
public static function generateTimestamp($instant = NULL) {
if ($instant === NULL) {
$instant = time();
}
return gmdate('Y-m-d\\TH:i:s\\Z', $instant);
}