Simple Human-Friendly Relative Date Formatting Plugin - optimusTime

File Size: Unknown
Views Total: 1049
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Simple Human-Friendly Relative Date Formatting Plugin - optimusTime

optimusTime is a simple jQuery plugin which displays standard date timestamp as relative to the current date in a human-friendly format.

Human-Friendly Relative Date Example:

  • x minutes ago.
  • x hours ago.
  • today.
  • yesterday.
  • x days ago.
  • x weeks ago.
  • x months ago.

You might also like:

How to use it:

1. Include jQuery library and jQuery optimusTime on your web page

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="jquery.optimusTime.min.js"></script>

2.  Insert a date timestamp on your page

<span class="timestamp">04/01/2013 11:00:00</span>

3. Call the plugin

<script>
  $('.timestamp').optimusTime();
</script>

Change Log:

v0.1.7 (2013-04-04)

  • Changed Object.create to new Object to support ie6+

This awesome jQuery plugin is developed by unknown. For more Advanced Usages, please check the demo page or visit the official website.