(PHP Extension) Transition from ZipEntry.GetDt to ZipEntry.FileDateTimeStr
Provides instructions for replacing deprecated GetDt method calls with FileDateTimeStr. Note: This example requires Chilkat v11.0.0 or greater.
<?php
include("chilkat.php");
// Use "chilkat_9_5_0.php" for versions of Chilkat < 10.0.0
$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());
?>
|