Talk:Tutorials Export Text Messages Using Perl
Hi, I've tried this right now, I got the id, but then the second script aborted on line 4 because of "C:\Documents and Settings\Josef Barta\Desktop>perl script2.pl 12094627905540 Lvicek Hvezdicka Can't locate DateTime.pm in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .)
at script2.pl line 4.
BEGIN failed--compilation aborted at script2.pl line 4."
can you help me somehow? In the script I've changed just the time zone to Europe/Paris... I need that quite urgently (till tomorrow if possible...)
Thank you very much for help, I've been looking for ages for such thing...:-)
It's probably too late for you, but maybe someone else has the same problem: you need to have the datetime module installed (package libdatetime-perl in ubuntu).
thank you for sharing the two scripts, they are very helpful. To make the date strings prettier (especially to pad minutes and seconds with zeros), I would suggest to change the last line in the loop to
print $dt->ymd.' '.$dt->hms.' '.$tofrom.$x->;