Skip to content

Instantly share code, notes, and snippets.

@reneeb
Created February 14, 2018 20:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reneeb/7272468e8ac9bb87eb3a9388de028c81 to your computer and use it in GitHub Desktop.
Save reneeb/7272468e8ac9bb87eb3a9388de028c81 to your computer and use it in GitHub Desktop.
package Kernel::System::JIRAMapping;
use strict;
use warnings;
our @ObjectDependencies = qw(
Kernel::System::Time
);
sub Today {
my $TimeObject = $Kernel::OM->Get('Kernel::System::Time');
my ($Sec, $Min, $Hour, $Day, $Mon, $Year) = $TimeObject->SystemTime2Date(
SystemTime => $TimeObject->SystemTime,
);
my ($Date) = sprintf "%04d-%02d-%02dT00:00:00.0+0000", $Year, $Mon, $Day;
return $Date;
}
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment