summaryrefslogtreecommitdiff
path: root/metadata/scripts/unique_id.pl
diff options
context:
space:
mode:
Diffstat (limited to 'metadata/scripts/unique_id.pl')
-rw-r--r--metadata/scripts/unique_id.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/metadata/scripts/unique_id.pl b/metadata/scripts/unique_id.pl
new file mode 100644
index 00000000..18ec9e13
--- /dev/null
+++ b/metadata/scripts/unique_id.pl
@@ -0,0 +1,7 @@
+#!/usr/bin/env perl
+
+use Date::Calc qw/Today_and_Now/;
+
+($year,$month,$day,$hour,$min,$sec) = Today_and_Now();
+print sprintf "swamid%s%02d%02dT%02d%02d%02dZ",$year,$month,$day,$hour,$min,$sec;
+