Sample code for 30+ languages & platforms
CkPython

Transition from Cert.GetValidFromDt to Cert.ValidFromStr

Provides instructions for replacing deprecated GetValidFromDt method calls with ValidFromStr.

Chilkat CkPython Downloads

CkPython
import sys
import chilkat

cert = chilkat.CkCert()

# ------------------------------------------------------------------------
# The GetValidFromDt method is deprecated:

# ckdt1 is a CkDateTime
ckdt1 = cert.GetValidFromDt()
if (cert.get_LastMethodSuccess() == False):
    print(cert.lastErrorText())
    sys.exit()

# ...
# ...

# ------------------------------------------------------------------------
# Do the equivalent using the ValidFromStr property

ckdt2 = chilkat.CkDateTime()
ckdt2.SetFromRfc822(cert.validFromStr())