src/translator.js
function translateDateTimestamp(timestamp) {
    if (!timestamp) {
        LOG.warn("Received an invalid timestamp: {}", timestamp);
        return Date.now();
    }

    return new Date(timestamp);
}
function translateDateTimestamp(timestamp) {
    if (!timestamp) {
        LOG.warn("Received an invalid timestamp: {}", timestamp);
        return Date.now();
    }

    return new Date(timestamp);
}
function translateDateTimestamp ( timestamp ) { if ( ! timestamp ) { LOG . warn ( "Received an invalid timestamp: {}" , timestamp ) ; return Date . now ( ) ; } return new Date ( timestamp ) ; }
Translates a date string from Dubtrack into a Javascript date.

@param {integer} timestamp - A timestamp from DubAPI
@returns {integer} The UNIX timestamp represented by the string,
or the current time if string is null/empty
Translates a date string from Dubtrack into a Javascript date .