Jump to content

I search function to show time like '1 hour ago'...


mstdmstdd

Recommended Posts

  Hello,
In my php7/vue.js2.5 application I use function from here https://gist.github.com/mattytemple/3804571
to show time like '1 hour ago', 'yesterday', 'tomorrow', 'in 2 weeks'

Bot looking at the comments, looks like it has some errors.
Now I need similar functions both in php and javascript with similar output results.

Please, share it is there are any...

Thanks!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.