PowerShell
PowerShell
Replace Deprecated GetExpirationDt
Shows how to replace the deprecated GetExpirationDt method.Chilkat PowerShell Downloads
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"
$cache = New-Object Chilkat.Cache
# ....
# ....
$cache_item_key = "xyz"
# Instead of this:
$dt1 = $cache.GetExpirationDt($cache_item_key)
# Do this:
$dt2 = New-Object Chilkat.CkDateTime
$dt2.SetFromRfc822($cache.GetExpirationStr($cache_item_key))