Minutes ago into hours ago at 60minutes?

Hi,

I have a twitter like app that shows time since a post was made as ‘This is a post. 6m ago’. Im doing current time - created time and displaying as minutes. Any idea how I would get that to change to hours after 60minutes have passed?
It’d be great if it could become days after 24 hours.

Thanks

Add conditions to the text:

When current date-creation date :format as minutes > 60… text = current date-creation date :format as hours

When current date-creation date :format as hours > 24… text = current date-creation date :format as days

2 Likes

Amazing, thanks

This topic was automatically closed after 70 days. New replies are no longer allowed.