Thread Perl und XBase Datum in Timestamp wandeln (3 answers)
Opened by jochen at 2006-07-18 04:40

renee
 2006-07-18 09:52
#8321 #8321
User since
2003-08-04
14371 Artikel
ModeratorIn
[Homepage] [default_avatar]
Code: (dl )
1
2
3
4
5
6
7
use Time::Local;

my $string = '20060718';
my ($year,$month,$day) = $string =~ /(\d{4})(\d{2})(\d{2})/;

my $time = timelocal(0,0,0,$day,$month-1,$year-1900);
print $time;
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 Perl und XBase Datum in Timestamp wandeln