An open API service indexing awesome lists of open source software.

https://github.com/schamane/time-ago

YUI3 time ago widget
https://github.com/schamane/time-ago

Last synced: 2 months ago
JSON representation

YUI3 time ago widget

Awesome Lists containing this project

README

        

# YUI3 time ago widget

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

Based on [jQuery widget](http://github.com/rmm5t/jquery-timeago).

## USAGE
HTML5 code like that:




Time:

Time:


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](http://creativecommons.org/licenses/BSD/).

Copyright (c) 2010, Nazar Kulyk