How can I get the custom string of timestamp just like Facebook or any other social media platform example is given below:
foo commented 1h ago