public static String formatDuration(final long milliseconds) {
        //currently only used for millisecond/second range, could be expanded to longer ranges later
        if (milliseconds > 1000) {
            return (milliseconds / 1000) + "." + (milliseconds % 1000) + "s";
        }
        return milliseconds + "ms";
    }
Formatting of the hidden date of a cache

@return {@code null} or hidden date of the cache (or event date of the cache) in human readable format
main/src/main/java/cgeo/geocaching/utils/Formatter.java