Sample code for 30+ languages & platforms
Chilkat2-Python

Transition from ZipEntry.GetDt to ZipEntry.FileDateTimeStr

Provides instructions for replacing deprecated GetDt method calls with FileDateTimeStr.

Chilkat Chilkat2-Python Downloads

Chilkat2-Python
import sys
import chilkat2

entry = chilkat2.ZipEntry()

# ...
# ...

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

# dtObj is a CkDateTime
dtObj = entry.GetDt()
if (entry.LastMethodSuccess == False):
    print(entry.LastErrorText)
    sys.exit()

# ...
# ...

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

dt = chilkat2.CkDateTime()
dt.SetFromRfc822(entry.FileDateTimeStr)