Thread timestamp problem: mit der funktion timelocal (5 answers)
Opened by galaxy at 2006-04-12 12:51

renee
 2006-04-12 17:20
#64756 #64756
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
8
use Date::Calc qw(Add_Delta_Days);
use Time::Local;

my $date = '31.01.2005';
my ($day,$month,$year) = split(/\./,$date);
($day,$month,$year) = Add_Delta_Days($day,$month,$year,1);

my $timestamp = timelocal(0,0,0,$day,$month-1,$year-1900);
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/

View full thread timestamp problem: mit der funktion timelocal