Ruby
Ruby
Transition from Cert.GetValidFromDt to Cert.ValidFromStr
Provides instructions for replacing deprecated GetValidFromDt method calls with ValidFromStr.Chilkat Ruby Downloads
require 'chilkat'
cert = Chilkat::CkCert.new()
# ------------------------------------------------------------------------
# The GetValidFromDt method is deprecated:
# ckdt1 is a CkDateTime
ckdt1 = cert.GetValidFromDt()
if (cert.get_LastMethodSuccess() == false)
print cert.lastErrorText() + "\n";
exit
end
# ...
# ...
# ------------------------------------------------------------------------
# Do the equivalent using the ValidFromStr property
ckdt2 = Chilkat::CkDateTime.new()
ckdt2.SetFromRfc822(cert.validFromStr())