private static String convertTimeElementToString(Long secondsFromMidnight) {
        return String.format(HOURS_OUTPUT_FORMAT, secondsFromMidnight / SECONDS_IN_MINUTE / MINUTES_IN_HOUR)
                + TIME_DELIMETER
                + String.format(MINUTES_OUTPUT_FORMAT, secondsFromMidnight / SECONDS_IN_MINUTE % MINUTES_IN_HOUR)
                + TIME_DELIMETER
                + String.format(SECONDS_OUTPUT_FORMAT, secondsFromMidnight % SECONDS_IN_MINUTE);
    }
private static String convertTimeElementToString ( Long secondsFromMidnight ) { return String . format ( HOURS_OUTPUT_FORMAT , secondsFromMidnight / SECONDS_IN_MINUTE / MINUTES_IN_HOUR ) + TIME_DELIMETER + String . format ( MINUTES_OUTPUT_FORMAT , secondsFromMidnight / SECONDS_IN_MINUTE % MINUTES_IN_HOUR ) + TIME_DELIMETER + String . format ( SECONDS_OUTPUT_FORMAT , secondsFromMidnight % SECONDS_IN_MINUTE ) ; }
The function to convert time without a date (hour, minute, second) from the sas7bdat file format
(which is the number of seconds elapsed from the midnight) into a string of the format set by the constants:
{@link DataWriterUtil#HOURS_OUTPUT_FORMAT}, {@link DataWriterUtil#MINUTES_OUTPUT_FORMAT},
{@link DataWriterUtil#SECONDS_OUTPUT_FORMAT}, and {@link DataWriterUtil#TIME_DELIMETER}.

@param secondsFromMidnight the number of seconds elapsed from the midnight.
@return the string of time in the format set by constants.