Sample code for 30+ languages & platforms
Tcl

Transition from ZipEntry.GetDt to ZipEntry.FileDateTimeStr

Provides instructions for replacing deprecated GetDt method calls with FileDateTimeStr.

Chilkat Tcl Downloads

Tcl

load ./chilkat.dll

set entry [new_CkZipEntry]

# ...
# ...

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

# dtObj is a CkDateTime
set dtObj [CkZipEntry_GetDt $entry]
if {[CkZipEntry_get_LastMethodSuccess $entry] == 0} then {
    puts [CkZipEntry_lastErrorText $entry]
    delete_CkZipEntry $entry
    exit
}

# ...
# ...

delete_CkDateTime $dtObj

# ------------------------------------------------------------------------
# Do the equivalent using FileDateTimeStr.

set dt [new_CkDateTime]

CkDateTime_SetFromRfc822 $dt [CkZipEntry_fileDateTimeStr $entry]

delete_CkZipEntry $entry
delete_CkDateTime $dt