Working Time function not working‏

Maria Alejandra Piedra <[email protected]>
Newsgroups gmane.comp.otrs.devel
Message-ID <[email protected]>
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

---------------------------------------------------------------------
OTRS mailing list: dev - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/dev
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/dev

NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.