def time_snowflake(datetime_obj, high=False):
 unix_seconds = (datetime_obj - type(datetime_obj)(1970, 1, 1)).total_seconds()
 discord_millis = int(((unix_seconds * 1000) - DISCORD_EPOCH))
 return ((discord_millis << 22) + (((2 ** 22) - 1) if high else 0))

def time_snowflake ( datetime_obj , high = False ) : unix_seconds = ( datetime_obj - type ( datetime_obj ) ( 1970 , 1 , 1 ) ) . total_seconds ( ) discord_millis = int ( ( ( unix_seconds * 1000 ) - DISCORD_EPOCH ) ) return ( ( discord_millis << 22 ) + ( ( ( 2 ** 22 ) - 1 ) if high else 0 ) )
returns a numeric snowflake pretending to be created at the given date .