(datetime)
return datetime.strftime('%Y-%m-%dT%H:%M:%S.%fZ')
Convert from datetime format to timestamp format
        Input: Time in datetime format
        Output: Time in timestamp format
Convert from datetime format to timestamp format
        Input: Time in datetime format
        Output: Time in timestamp format
Convert from datetime format to timestamp format Input : Time in datetime format Output : Time in timestamp format
def timestamp_from_datetime(datetime):
    """
        Convert from datetime format to timestamp format
        Input: Time in datetime format
        Output: Time in timestamp format
    """
    return datetime.strftime('%Y-%m-%dT%H:%M:%S.%fZ')
def timestamp_from_datetime ( datetime ) : return datetime . strftime ( '%Y-%m-%dT%H:%M:%S.%fZ' )