Sample code for 30+ languages & platforms
Perl Requires Chilkat v11.0.0+

Transition from ZipEntry.GetDt to ZipEntry.FileDateTimeStr

Provides instructions for replacing deprecated GetDt method calls with FileDateTimeStr.

Chilkat Perl Downloads

Perl
use chilkat();

$entry = chilkat::CkZipEntry->new();

#  ...
#  ...

#  ------------------------------------------------------------------------
#  The GetDt method is deprecated:

# dtObj is a CkDateTime
$dtObj = $entry->GetDt();
if ($entry->get_LastMethodSuccess() == 0) {
    print $entry->lastErrorText() . "\r\n";
    exit;
}

#  ...
#  ...

#  ------------------------------------------------------------------------
#  Do the equivalent using FileDateTimeStr.

$dt = chilkat::CkDateTime->new();
$dt->SetFromRfc822($entry->fileDateTimeStr());