Interface TimeFormatter


public interface TimeFormatter
Interface to format time
  • Method Summary

    Modifier and Type
    Method
    Description
    formatDateAndTime(long timestamp)
    Format date and time UNIX timestamp to human readable format
    formatUptime(long seconds)
    Format uptime number to human readable format
  • Method Details

    • formatUptime

      String formatUptime(long seconds)
      Format uptime number to human readable format
      Parameters:
      seconds - number of seconds since uptime
      Returns:
      uptime in human readable format
    • formatDateAndTime

      String formatDateAndTime(long timestamp)
      Format date and time UNIX timestamp to human readable format
      Parameters:
      timestamp - UNIX timestamp to format
      Returns:
      time and date in human readable format