Class DurationUtils
java.lang.Object
overit.geocallapp.utilities.ux.ui.util.date.DurationUtils
The class contains all the utility methods for formatting the duration.
- Since:
- 19.0
-
Method Details
-
format
Return aStringthat represents the given duration expressed in Days, Hours, Minutes- Parameters:
durationMinutes- the duration to formatteacher- you may pass the teacher for translations.- Returns:
- a
Stringthat represents the given duration expressed in Days, Hours, Minutes
-
format
-
format
public static String format(Long durationMinutes, boolean showIfZero, boolean showDays, Teacher teacher) Return aStringthat represents the given duration expressed in Days, Hours, Minutes- Parameters:
durationMinutes- the duration to format (in minutes)showIfZero- show zero if true, empty string if falseshowDays- show days if trueteacher- you may pass the teacher for translations.- Returns:
- a
Stringthat represents the given duration expressed in Days, Hours, Minutes
-