A JavaScipt plugin for updating the time stamp in your webpages.
- 1 minute ago
- 5 days ago
Include the momentary.js
file in the <body>
section of your page.
Use:
<span class="relativetime" title="2015-09-17 18:25:08"></span>
in your HTML code. Add the time stamp in the title attribute via your scriping language.
eg: <span class="relativetime" title="{{ $post->created_at }}"></span>
1 minute ago