Just a quick sketch here. This winter, I watched this squirrel run back and forth across our fence in the back yard, getting peanuts from the neighbors’ yard to take back to her nest. She’s a hard worker!
Posts
-
-
-
-
-
-
Extracting the actual date of a LinkedIn Post
Copy paste friendly:
from datetime import datetime def extract_unix_timestamp(post_id): # BigInt needed as we need to treat post_id as 64 bit decimal. # Python uses arbitrary-precision integers, so no need for explicit BigInt. as_binary = bin(int(post_id))[2:] first_41_chars = as_binary[:41] timestamp = int(first_41_chars, 2) / 1000 # Convert Unix timestamp to a readable format readable_timestamp = datetime.utcfromtimestamp(timestamp).strftime('%Y-%m-%d %H:%M:%S') return timestamp, readable_timestamp # Example usage: post_id = 7089460991175901184 timestamp, readable_timestamp = extract_unix_timestamp(post_id) print(f"Unix Timestamp: {timestamp}") print(f"Readable Timestamp: {readable_timestamp}")
Be the First!
I have zero subscribers to send anything to, but if you sign up now, I will start sending… something. Notifications of new posts, videos and whatever. Try me!