/* aqStamp v1.0.5 Converts UNIX time stamps in seconds to human readable format. Copyright (C) 2011 paul pham This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ (function($){$.aqStamp=function(s,t){var _0=parseInt((new Date()).getTime()/1000,10)-parseInt(s,10),_2='',_1=$.aqStamp.text;if(_0<60){_2=_1.seconds}else if(_0<120){_2=_1.minute}else if(_0<3600){_2=Math.round(_0/60)+' '+_1.minutes}else if(_0<7200){_2=_1.hour}else if(_0<86400){_2=Math.round(_0/3600)+' '+_1.hours}else if(_0<172800){_2=_1.day}else if(_0<2678400){_2=Math.round(_0/86400)+' '+_1.days}else if(_0<5356800){_2=_1.month}else if(_0<31536000){_2=Math.round(_0/2678400)+' '+_1.months}else if(_0<63072000){_2=_1.year}else{_2=Math.round(_0/31536000)+' '+_1.years}if(t){return''+_2+' '+_1.ago+'<\/span>'}return _2+' '+_1.ago};$.aqStamp.text={seconds:'few seconds',minute:'about a minute',minutes:'minutes',hour:'over an hour',hours:'hours',day:'over a day',days:'days',month:'over a month',months:'months',year:'over a year',years:'years',ago:'ago'}}(jQuery));