PHP Extension
PHP Extension
Transition from ZipEntry.GetDt to ZipEntry.FileDateTimeStr
Provides instructions for replacing deprecated GetDt method calls with FileDateTimeStr.Chilkat PHP Extension Downloads
<?php
include("chilkat.php");
$entry = new CkZipEntry();
// ...
// ...
// ------------------------------------------------------------------------
// The GetDt method is deprecated:
// dtObj is a CkDateTime
$dtObj = $entry->GetDt();
if ($entry->get_LastMethodSuccess() == false) {
print $entry->lastErrorText() . "\n";
exit;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using FileDateTimeStr.
$dt = new CkDateTime();
$dt->SetFromRfc822($entry->fileDateTimeStr());
?>