You are here

public static function Utilities::generateTimestamp in SAML SP 2.0 Single Sign On (SSO) - SAML Service Provider 8

2 calls to Utilities::generateTimestamp()
SAML2_Assertion::__construct in src/SAML2_Assertion.php
Utilities::createAuthnRequest in src/Utilities.php

File

src/Utilities.php, line 281

Class

Utilities
This file is part of miniOrange SAML plugin.

Namespace

Drupal\miniorange_saml

Code

public static function generateTimestamp($instant = NULL) {
  if ($instant === NULL) {
    $instant = time();
  }
  return gmdate('Y-m-d\\TH:i:s\\Z', $instant);
}