mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 12:25:16 +00:00
Display "member since" on the left
This commit is contained in:
@ -83,4 +83,15 @@ ComunicWeb.common.date = {
|
||||
return years + " years";
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Get the difference of time from now to a specified
|
||||
* timestamp and return it as a string
|
||||
*
|
||||
* @param {Integer} time The base time
|
||||
* @return {String} Computed difference
|
||||
*/
|
||||
timeDiffToStr: function(time){
|
||||
return this.diffToStr(this.time() - time);
|
||||
},
|
||||
}
|
Reference in New Issue
Block a user