Skip to content
Snippets Groups Projects
Commit 73d29319 authored by Gerhard Gonter's avatar Gerhard Gonter :speech_balloon:
Browse files

added ts_ISO_gmt()

parent aa8d3149
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,14 @@ sub ts_ISO2_gmt
$ts[5]+1900, $ts[4]+1, $ts[3], $ts[2], $ts[1], $ts[0]);
}
sub ts_ISO_gmt
{
my $time= shift || time ();
my @ts= gmtime ($time);
sprintf ("%04d-%02d-%02dT%02d%02d%02d",
$ts[5]+1900, $ts[4]+1, $ts[3], $ts[2], $ts[1], $ts[0]);
}
sub ts_pg
{
my $time= shift || time ();
......
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