Skip to content

Latest commit

 

History

History
45 lines (35 loc) · 1012 Bytes

README.markdown

File metadata and controls

45 lines (35 loc) · 1012 Bytes

YUI3 time ago widget

widget that will show some time ago in human readable format made as YUI3 module.

Based on jQuery widget.

USAGE

HTML5 code like that:

Time: June 14th 2010 at 21:28 Time: June 13th 2010 at 11:21
<script type="text/javascript" src="timeago-min.js"></script>

And than

	YUI().use('base', 'time-ago', function(Y) {
    	var timeAgo = new Y.TimeAgo({
			contentBox: "#content items time"
    	});
    	timeAgo.startUpdates();
    });

Result something like that:

Time: 20 minutes
Time: 1 days

TODO

  • Better inline documentation
  • Internationalization of the messages.
  • Cleanups

LICENSING

TimeAgo widget is released under the BSD License.

Copyright (c) 2010, Nazar Kulyk