CkPython
CkPython
Transition from ZipEntry.GetDt to ZipEntry.FileDateTimeStr
Provides instructions for replacing deprecated GetDt method calls with FileDateTimeStr.Chilkat CkPython Downloads
import sys
import chilkat
entry = chilkat.CkZipEntry()
# ...
# ...
# ------------------------------------------------------------------------
# The GetDt method is deprecated:
# dtObj is a CkDateTime
dtObj = entry.GetDt()
if (entry.get_LastMethodSuccess() == False):
print(entry.lastErrorText())
sys.exit()
# ...
# ...
# ------------------------------------------------------------------------
# Do the equivalent using FileDateTimeStr.
dt = chilkat.CkDateTime()
dt.SetFromRfc822(entry.fileDateTimeStr())