`convertTime` <-
function(tmp.time) {
tmp <- tail(c(0, 0, 0, as.numeric(unlist(strsplit(tmp.time, ":")))), 4)
tmp.label <- c("Day", "Hour", "Minute", "Second")
tmp.label[which(tmp!=1)] <- paste0(tmp.label, "s")[which(tmp!=1)]
return(paste(paste(tmp[tmp!=0], tmp.label[tmp!=0]), collapse=", "))
} ### END convertTime
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.