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.
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. |
---|
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. |