@NonNull
    public static TimeZoneOffset encode(double hours) {
        return new TimeZoneOffset((byte) Math.max(0, Math.min(255, Math.round(hours * 4 + 64))));
    }
Encodes a TimeZoneOffset from hours. The encoding is an approximation and will clamp hours to
[-64, 47.75] with a resolution of 0.25 hours.

@param hours the time offset in hours
@return a TimeZoneOffset instance approximating the hour offset.
mesh/src/main/java/no/nordicsemi/android/mesh/data/TimeZoneOffset.java