Class TimeConverter

java.lang.Object
com.saperion.ngc.util.TimeConverter

public class TimeConverter extends Object
Utility class for date conversion.
  • Constructor Details

    • TimeConverter

      public TimeConverter(long gmtMillis)
      Constructor.
      Parameters:
      gmtMillis - date to convert in milliseconds (GMT)
  • Method Details

    • getLocalDate

      public Date getLocalDate()
      Converts the date to local time.
      Returns:
      local time
    • getLocalDateTimeString

      public String getLocalDateTimeString(int dateFormat, int timeFormat)
      Creates a string representing the date and time for the local time zone.
      Parameters:
      dateFormat - format of date part as specified by DateFormat
      timeFormat - format of time part as specified by DateFormat
      Returns:
      dateTime string