public static void addStandardTokens(TokenFilter filter) {

        // Add date/time tokens (server-local time)
        Date currentTime = new Date();
        filter.setToken(DATE_TOKEN, new SimpleDateFormat(DATE_FORMAT).format(currentTime));
        filter.setToken(TIME_TOKEN, new SimpleDateFormat(TIME_FORMAT).format(currentTime));

    }
Adds tokens which are standardized by guacamole-ext to the given
TokenFilter and which do not require a corresponding Credentials object.
These the server date and time (GUAC_DATE and GUAC_TIME respectively).

@param filter
    The TokenFilter to add standard tokens to.
guacamole-ext/src/main/java/org/apache/guacamole/token/StandardTokens.java