Skip to content

Instantly share code, notes, and snippets.

Avinash Gardas avinashgardas

Block or report user

Report or block avinashgardas

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@avinashgardas
avinashgardas / timeAgo.js
Last active Mar 26, 2018
Time ago function in javascript (example: 3 days ago)
View timeAgo.js
function console(msg) {
var pre = document.createElement('pre')
pre.innerHTML = msg
document.body.appendChild(pre)
}
function getFeedbackTime(feedbackTimestamp) {
/*
Note: timestamp structure
2018 - 03 - 26 T 1 4 : 2 7 : 4 8 . 5 0 8 Z
You can’t perform that action at this time.