Created
February 14, 2018 20:17
-
-
Save reneeb/7272468e8ac9bb87eb3a9388de028c81 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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