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

    When using as the lower end of a range, use time_snowflake(high=False) - 1 to be inclusive, high=True to be exclusive
    When using as the higher end of a range, use time_snowflake(high=True) + 1 to be inclusive, high=False to be exclusive

    Parameters
    -----------
    datetime_obj
        A timezone-naive datetime object representing UTC time.
    high: :class:`bool`
        Whether or not to set the lower 22 bit to high or low.