opensubscriber
   Find in this group all groups
 
Unknown more information…

d : dev@otrs.org 21 July 2010 • 10:28PM -0400

[dev] Working Time function not working‏
by Maria Alejandra Piedra

REPLY TO AUTHOR
 
REPLY TO GROUP



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

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.