Tcl
Tcl
Replace Deprecated GetExpirationDt
Shows how to replace the deprecated GetExpirationDt method.Chilkat Tcl Downloads
load ./chilkat.dll
set cache [new_CkCache]
# ....
# ....
set cache_item_key "xyz"
# Instead of this:
# dt1 is a CkDateTime
set dt1 [CkCache_GetExpirationDt $cache $cache_item_key]
delete_CkDateTime $dt1
# Do this:
set dt2 [new_CkDateTime]
CkDateTime_SetFromRfc822 $dt2 [CkCache_getExpirationStr $cache $cache_item_key]
delete_CkCache $cache
delete_CkDateTime $dt2