Hey there!
I’m trying to use the $TimeObject->WorkingTime() function, but is not returning anything!
Am I doing
something wrong? I already checked the parameters, but still is not
returning
anything.
My code is as follows:
sub _getTime{
my ( $Self, %Param ) = @_;
my ($startdate, $stopdate) = @_;
my $ConfigObject = Kernel::Config->new();
my $EncodeObject = Kernel::System::Encode->new(
ConfigObject => $ConfigObject,
);
my $LogObject = Kernel::System::Log->new(
ConfigObject => $ConfigObject,
EncodeObject => $EncodeObject,
);
my $TimeObject = Kernel::System::Time->new(
ConfigObject => $ConfigObject,
LogObject => $LogObject,
);
my $WorkingTime = $TimeObject->WorkingTime(
StartTime => '15/07/2010', #I’m using fixed dates to see if it was a problem with parameters but still it didn’t work!!!
StopTime => '16/07/2010',
);
# my @parts = gmtime($WorkingTime);
# my ($Dd,$Dh,$Dm,$Ds)=@parts[7,2,1,0];
# my @time = ($Dd,$Dh,$Dm,$Ds);
# return @time;
return $WorkingTime;
}
Regards
María Alejandra Piedra