Package com.saperion.ngc.util
Class TimeConverter
- java.lang.Object
-
- com.saperion.ngc.util.TimeConverter
-
public class TimeConverter extends java.lang.Object
Utility class for date conversion.
-
-
Constructor Summary
Constructors Constructor Description TimeConverter(long gmtMillis)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getLocalDate()
Converts the date to local time.java.lang.String
getLocalDateTimeString(int dateFormat, int timeFormat)
Creates a string representing the date and time for the local time zone.
-
-
-
Method Detail
-
getLocalDate
public java.util.Date getLocalDate()
Converts the date to local time.- Returns:
- local time
-
getLocalDateTimeString
public java.lang.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 DateFormattimeFormat
- format of time part as specified by DateFormat- Returns:
- dateTime string
-
-