Package PamUtils

Class TimeRangeFormatter

java.lang.Object
PamUtils.TimeRangeFormatter

public class TimeRangeFormatter extends Object
Class to format time ranges, particularly when they get quite large and doing them in seconds no longer makes sense.
Want something along the lines of
if an integer number of days, then just days,
if an integer number of hours, then days and hours
if an integer numeber of minutes, then days, hours, minutes
if an integer number of seconds, then days, hours, minutes, seconds
etc.
Author:
Doug Gillespie
  • Constructor Details

    • TimeRangeFormatter

      public TimeRangeFormatter()
  • Method Details

    • formatTime

      public static String formatTime(long millis)
    • readTime

      public static long readTime(String timeString)