Warning

This documentation is still a work in progress. If you have any issues or questions, please ask on the stix-discussion mailing list or file a bug in our issue tracker.

stix.utils.dates Module

Functions

stix.utils.dates.parse_value(value)

Attempts to parse value into an instance of datetime.datetime. If value is None, this function will return None.

Parameters:value – A timestamp. This can be a string or datetime.datetime value.
stix.utils.dates.serialize_value(value)

Attempts to convert value into an ISO8601-compliant timestamp string. If value is None, None will be returned.

Parameters:value – A datetime.datetime value.
Returns:An ISO8601 formatted timestamp string.

Table Of Contents

Previous topic

stix.ttp.victim_targeting Module

Next topic

stix.utils.idgen Module

This Page

Related Documentation