Ported stat to use TimeObject and Time::Piece.

So we can get rid of Date;:Pcalc of which the new version on CPAN has
different dependencies, and the old version (only available on BackPAN)
is from 2002.

Time::Piece is a core module since perl 5.10 which just happens to be
the minimum version for OTRS 3.3.