Medium

In a social media app, you need to implement a feature that shows how long ago a post was created (e.g., "2 hours ago", "3 days ago"). What's wrong with this implementation?

Choose an option below