This is an extension function for turning Discord's Snowflake format into a Java Instant, and a few other functions.
I just needed an easy way to find readable time + dates from Discord Snowflakes, and docs weren't extremely clear as to how it works, as I overcomplicated it several times.
Long.fromDiscordSnowFlake() will shift the Long 22 to the right, and then add the offset, which defaults to the first millisecond of 2015. This will give you an Epoch millisecond, which you can use in a Java Instant to format however you like. There is more detail on the docs
What's with the file name?
For some reason gists are alphabetically listed, and you can't change the order nor change the "base" file name which displays on your profile, it just chooses the first file.