Node.js
Node.js
Transition from ZipEntry.GetDt to ZipEntry.FileDateTimeStr
Provides instructions for replacing deprecated GetDt method calls with FileDateTimeStr.Chilkat Node.js Downloads
NODEJS_PRELUDE
function chilkatExample() {
var entry = new chilkat.ZipEntry();
// ...
// ...
// ------------------------------------------------------------------------
// The GetDt method is deprecated:
// dtObj: CkDateTime
var dtObj = entry.GetDt();
if (entry.LastMethodSuccess == false) {
console.log(entry.LastErrorText);
return;
}
// ...
// ...
// ------------------------------------------------------------------------
// Do the equivalent using FileDateTimeStr.
var dt = new chilkat.CkDateTime();
dt.SetFromRfc822(entry.FileDateTimeStr);
}
chilkatExample();