Ruby
Ruby
Transition from Email.GetDt to Email.EmailDateStr
Provides instructions for replacing deprecated GetDt method calls with EmailDateStr.Chilkat Ruby Downloads
require 'chilkat'
email = Chilkat::CkEmail.new()
# ...
# ...
# ------------------------------------------------------------------------
# The GetDt method is deprecated:
# dateTimeObj is a CkDateTime
dateTimeObj = email.GetDt()
if (email.get_LastMethodSuccess() == false)
print email.lastErrorText() + "\n";
exit
end
# ...
# ...
# ------------------------------------------------------------------------
# Do the equivalent using EmailDateStr.
dt = Chilkat::CkDateTime.new()
dt.SetFromRfc822(email.emailDateStr())