ssCore.Security.getExpiryDate

Determine when this application will expire using the settings from the Expiry tab, or just retrieve the value set by a previous call to Security.setExpiryDate. All returned date and time information is in local time.


Availability:

First available in version 3.0 build 2039.


Input Parameters:

None.


Output Parameters:

year - Expiry year (2004..2099).

month - Expiry month (Jan=1, Feb=2, ... Dec=12)

day - Expiry day in month (1..31).

hour - Expiry hour (0.. 23).

minute - Expiry minute (0..59).

second - Expiry second (0..59).

result - Expiry date in the following format: Fri, 31 Dec 2004 02:00:00 AM (GMT-0500).


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.Security.getExpiryDate( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.Security.getExpiryDate( paramsObject );


Notes:

None.


Examples:

var return_obj = ssCore.Security.getExpiryDate();

ssDebug.trace(return_obj.result);
ssDebug.trace(return_obj.year);
ssDebug.trace(return_obj.month);
ssDebug.trace(return_obj.day);
ssDebug.trace(return_obj.hour);
ssDebug.trace(return_obj.minute);
ssDebug.trace(return_obj.second);