Go
Go
Transition from ZipEntry.GetDt to ZipEntry.FileDateTimeStr
Provides instructions for replacing deprecated GetDt method calls with FileDateTimeStr.Chilkat Go Downloads
entry := chilkat.NewZipEntry()
// ...
// ...
// ------------------------------------------------------------------------
// The GetDt method is deprecated:
dtObj := entry.GetDt()
if entry.LastMethodSuccess() == false {
fmt.Println(entry.LastErrorText())
entry.DisposeZipEntry()
return
}
// ...
// ...
dtObj.DisposeCkDateTime()
// ------------------------------------------------------------------------
// Do the equivalent using FileDateTimeStr.
dt := chilkat.NewCkDateTime()
dt.SetFromRfc822(entry.FileDateTimeStr())
entry.DisposeZipEntry()
dt.DisposeCkDateTime()