time(value, second = true) {
            let secondString;
            if (second) {
                secondString = ":ss";
            } else {
                secondString = "";
            }
            return this.datetimeFormat(value, "HH:mm" + secondString);
        }
Return a given value in the format HH:mm or if second is set
to true, HH:mm:ss
@param {any} value Value to format
@param {boolean} second Should seconds be included?
@returns {string} Formatted string