Re: Working Time function not working‏

Torsten Thau <[email protected]>
Newsgroups gmane.comp.otrs.devel
Organization c.a.p.e. IT Group
Message-ID <[email protected]>
Hi,

> my $WorkingTime = $TimeObject->WorkingTime(
>         StartTime => '15/07/2010',
>         StopTime => '16/07/2010',
> );

method WorkingTime requires systemtime-values as parameters. Try
something like

my $WorkingTime = $TimeObject->WorkingTime(
    StartTime => '1279152000',  # which is '15/07/2010'
    StopTime => '1279238400',   # which is '16/07/2010'
    Calendar  => $Calendar || '',
);

regards, Torsten Thau

-- 
Torsten Thau, Dipl. Inform.
c.a.p.e. IT Labs GbR - Annaberger Str. 240 - D-09125 Chemnitz
phone: +49 371 5347 623
cell: +49 176 66 680 680
personal pgp-key: 0x93E0A174
fax: +49 371 5347 625
http://www.cape-it.de

---------------------------------------------------------------------
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/
signature.asc (application/pgp-signature, 262 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxKmJoACgkQvXo8m5PgoXQSywCfTUd0kCo0wgSG2+V0aRX0a2v7
0t0AnjipKSClC+qOJ7FrRICjP9eFbJVH
=lLWm
-----END PGP SIGNATURE-----
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.