Skip to content
Snippets Groups Projects
Commit 394487f3 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Adding generateTimestamp()

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@369 44740490-163a-0410-bde0-09ae8108e29a
parent 5be1cff0
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,6 @@ class SimpleSAML_Utilities {
}
public static function generateID() {
$length = 42;
$key = "_";
for ( $i=0; $i < $length; $i++ )
......@@ -165,6 +164,10 @@ class SimpleSAML_Utilities {
return $key;
}
public static function generateTimestamp() {
return gmdate("Y-m-d\TH:i:s\Z");
}
public static function generateTrackID() {
$uniqueid = substr(md5(uniqid(rand(), true)), 0, 10);
return $uniqueid;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment