in server/src/main/resources/twitter-server/js/utils.js [16:29]
MsToStringConverter.prototype.convert = function(ms) {
var years = (ms/this.msInYear).toFixed(0)
var days = Math.floor(((ms - this.msInYear*years)/this.msInDay))
var hours = Math.floor((ms - this.msInYear*years - this.msInDay*days)/this.msInHour)
var minutes = Math.floor((ms - this.msInYear*years - this.msInDay*days - this.msInHour*hours)/this.msInMinute)
var seconds = Math.floor((ms - this.msInYear*years - this.msInDay*days - this.msInHour*hours - this.msInMinute*minutes)/this.msInSecond)
if(ms < this.msInSecond) return this.showMilliseconds(ms)
else if(ms < this.msInMinute) return this.showSeconds(seconds)
else if(ms < this.msInHour) return this.showMinutes(minutes) + " " + this.showSeconds(seconds)
else if(ms < this.msInDay) return this.showHours(hours) + " " + this.showMinutes(minutes) + " " + this.showSeconds(seconds)
else if(ms < this.msInYear) return this.showDays(days) + " " + this.showHours(hours) + " " + this.showMinutes(minutes)
else return this.showYears(years) + " " + this.showDays(days) + " " + this.showHours(hours)
}