You are here

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

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

File

includes/Utilities.php, line 684

Class

Utilities
This file is part of miniOrange SAML plugin.

Code

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