Published on InterSystems Developer Community (https://community.intersystems.com)

Home > Python script to perform $ZDATE function

Question
Kevin McGinn · Mar 9, 2022

Python script to perform $ZDATE function

I have a python script that is pulling the cache instance key expiration date ( KeyExpirationDate() ) which comes back as an integer. With the queryscript function - $ZDATE(73284) I can derive the actual expiration date. Is there a manner or method of creating an equivalent Python script that will convert the integer return by the KeyExpirationDate()  method into a date string?

#Python #Caché
Product version: Caché 2018.1

Source URL:https://community.intersystems.com/post/python-script-perform-zdate-function