public class TimeConverter extends Object
| Constructor and Description |
|---|
TimeConverter(long gmtMillis)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getLocalDate()
Converts the date to local time.
|
String |
getLocalDateTimeString(int dateFormat,
int timeFormat)
Creates a string representing the date and time for the local time zone.
|
public TimeConverter(long gmtMillis)
gmtMillis - date to convert in milliseconds (GMT)public Date getLocalDate()
public String getLocalDateTimeString(int dateFormat, int timeFormat)
dateFormat - format of date part as specified by DateFormattimeFormat - format of time part as specified by DateFormatCopyright © 2016 Lexmark Enterprise Software Deutschland GmbH. All rights reserved.