Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Like timeago, but in the future

Tags:

jquery

There is this cool jQuery plugin called timeago which converts time from the past into a human readable format.

I would like a similar thing for the future. (I am working on a TV programme scheduler.)

like image 554
Randomblue Avatar asked Oct 28 '11 12:10

Randomblue


1 Answers

Quote from the documentation (home page in fact):

To support timestamps in the future, use the allowFuture setting:

jQuery.timeago.settings.allowFuture = true;

Live demo.

like image 140
Darin Dimitrov Avatar answered Nov 13 '22 10:11

Darin Dimitrov