This function saves the timestamp.

save_timestamp(self, datetime_format=False, timezone=False, new_timestamp=SiemplifyUtils.unix_now())

Parameters:

Param Name Param Type Possible Values Comments Mandatory Parameter
datetime_format boolean True/False True will return the datetime after converting the unixtime and False will simply return the datetime No
timezone boolean True/False If True, siemplify will convert the time zone. [Not supported for DST] No
new_timestamp long datetime New timestamp as datetime to be saved. No

Return Type

NoneType

Example:

Sample Code
from SiemplifyAction import SiemplifyAction 
sa = SiemplifyAction() 
sa.save_timestamp(self, datetime_format=False, timezone=False, new_timestamp=SiemplifyUtils.unix_now())
Result Behavior
New timestamp will be saved as TIMESTAMP file in the current directory. 
Result Value
None