Created
August 17, 2021 13:53
-
-
Save JimmyCushnie/8014fd79703d21a7afd0dac4f9956fff to your computer and use it in GitHub Desktop.
Extract a timestamp from a TikTok ID.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
static void Main() | |
{ | |
Console.WriteLine("Enter tiktok ID"); | |
ulong id = ulong.Parse(Console.ReadLine()); | |
ulong shifted = id >> 32; | |
var date = DateTime.UnixEpoch.AddSeconds(shifted); | |
Console.WriteLine("Tiktok was posted on " + date); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment