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

Transition from Email.GetDt to Email.EmailDateStr

Provides instructions for replacing deprecated GetDt method calls with EmailDateStr.

Chilkat CkPython Downloads

CkPython
import sys
import chilkat

email = chilkat.CkEmail()

#  ...
#  ...

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

# dateTimeObj is a CkDateTime
dateTimeObj = email.GetDt()
if (email.get_LastMethodSuccess() == False):
    print(email.lastErrorText())
    sys.exit()

#  ...
#  ...

#  ------------------------------------------------------------------------
#  Do the equivalent using EmailDateStr.

dt = chilkat.CkDateTime()
dt.SetFromRfc822(email.emailDateStr())