def serialize_value(value):
    if not value:
        return None
    return value.isoformat()
Attempts to convert `value` into an ISO8601-compliant timestamp string.
dataset/ETHPy150Open STIXProject/python-stix/stix/utils/dates.py/serialize_value