you have to save the milliseconds from System.Currentmilliseconds method with the data. and then when you are getting the image or text also get the time and then just again get current milliseconds and minus the current milliseconds with the saved one and then convert the resultant milliseconds into days or hour .... this resultant will be the "time ago"
How to create order Id api using rozar pay api... Pe ek video bnana pls ... Transaction fetch Kaise krte hy payment ka ... 20 subscription aapko instant milega ...