public static String periodToTime(final int seconds) {
        if (seconds == 1)
            return seconds + " second";
        else if (seconds > 1 && seconds < 60) {
            return seconds + " seconds";
        } else if (seconds >= 60 && seconds < 3600) {
            return seconds / 60 + " min " + (seconds % 60) + " sec";
        } else if (seconds >= 3600 && seconds <= 65535) {
            return seconds / 3600 + " h " + ((seconds % 3600) / 60) + " min " + (seconds % 3600 % 60) + " sec";
        } else
            return seconds / 3600 + " h " + ((seconds % 3600) / 60) + " min " + ((seconds % 3600 % 60) - 1) + " sec";
    }
Converts the perio to time

@param seconds PeriodLog
mesh/src/main/java/no/nordicsemi/android/mesh/utils/Heartbeat.java