ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Static Public Member Functions | |
static | generateTimestamp ($instant=null) |
This function generates a timestamp on the form used by the SAML protocols. More... | |
static | initTimezone () |
Initialize the timezone. More... | |
static | parseDuration ($duration, $timestamp=null) |
Interpret a ISO8601 duration value relative to a given timestamp. More... | |
Static Private Attributes | |
static | $tz_initialized = false |
|
static |
This function generates a timestamp on the form used by the SAML protocols.
int | $instant | The time the timestamp should represent. Defaults to current time. |
Definition at line 31 of file Time.php.
Referenced by SimpleSAML\Bindings\Shib13\Artifact\buildRequest(), SimpleSAML\XML\Shib13\AuthnResponse\generate(), sspmod_adfs_IdP_ADFS\generateResponse(), and SimpleSAML_Utilities\generateTimestamp().
|
static |
Initialize the timezone.
This function should be called before any calls to date().
Definition at line 51 of file Time.php.
References $globalConfig, SimpleSAML_Configuration\getInstance(), SimpleSAML\Logger\maskErrors(), and SimpleSAML\Logger\popErrorMask().
Referenced by SimpleSAML\Logger\FileLoggingHandler\__construct(), and SimpleSAML_Utilities\initTimezone().
|
static |
Interpret a ISO8601 duration value relative to a given timestamp.
Please note no fractions are allowed, neither durations specified in the formats PYYYYMMDDThhmmss nor P[YYYY]-[MM]-[DD]T[hh]:[mm]:[ss].
string | $duration | The duration, as a string. |
int | $timestamp | The unix timestamp we should apply the duration to. Optional, default to the current time. |
Definition at line 91 of file Time.php.
References $timestamp.
Referenced by SimpleSAML_Utilities\parseDuration().
|
staticprivate |