Sample code for 30+ languages & platforms
C++

Transition from ZipEntry.GetDt to ZipEntry.FileDateTimeStr

Provides instructions for replacing deprecated GetDt method calls with FileDateTimeStr.

Chilkat C++ Downloads

C++
#include <CkZipEntry.h>
#include <CkDateTime.h>

void ChilkatSample(void)
    {
    CkZipEntry entry;

    //  ...
    //  ...

    //  ------------------------------------------------------------------------
    //  The GetDt method is deprecated:

    CkDateTime *dtObj = entry.GetDt();
    if (entry.get_LastMethodSuccess() == false) {
        std::cout << entry.lastErrorText() << "\r\n";
        return;
    }

    //  ...
    //  ...

    delete dtObj;

    //  ------------------------------------------------------------------------
    //  Do the equivalent using FileDateTimeStr.

    CkDateTime dt;
    dt.SetFromRfc822(entry.fileDateTimeStr());
    }