Smarts ASL: Is there a way to convert timestamps for Smarts objects like SM_OBJ_FirstNotifiedAt to human readable form?; What is the purpose of the ASL time() function?
search cancel

Smarts ASL: Is there a way to convert timestamps for Smarts objects like SM_OBJ_FirstNotifiedAt to human readable form?; What is the purpose of the ASL time() function?

book

Article ID: 304308

calendar_today

Updated On:

Products

VMware Smart Assurance

Environment

VMware Smart Assurance - SMARTS

Resolution

Is there a way to convert timestamps for Smarts objects like SM_OBJ_FirstNotifiedAt to human readable form?
What is the purpose of the Smarts ASL (Adapter Scripting Language) time() function?




Objects like SM_OBJ_FirstNotifiedAt in Ionix display the internal Timestamp format in a format which is not easily readable. To "read" the time in human readable format, you can use the  ASL time(timestamp) function to convert Timestamp to a human readable format. This could be done as follows:

START{
..eol }
do{
timestamp=1270115622;
print("Time".time(timestamp));
}