summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2016-02-14 14:13:40 +0100
committerLeif Johansson <leifj@sunet.se>2016-02-14 14:13:40 +0100
commitdefb28094a204925c628cce1cbe27c3a67d4cbbe (patch)
tree898f2f037c29e02fec7a35d96f1784b9994c4e0b
parenta3f8618c3df7b461b4788dbc11e7c917f56fa03a (diff)
now_date.plno-saml-md-tool
-rwxr-xr-xscripts/now_data.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/now_data.pl b/scripts/now_data.pl
new file mode 100755
index 00000000..1a5e6890
--- /dev/null
+++ b/scripts/now_data.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();
+my $date = sprintf "%s-%02d-%02dT%02d:%02d:%02dZ",$year,$month,$day,$hour,$min,$sec;
+print $date;