public class TimeFormattingUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
formatTime(java.util.Date date)
Formats a given Data to a readable format with the default TimeZone.
|
static java.lang.String |
formatTime(java.util.Date date,
java.util.TimeZone timeZone)
Formats a given Data to a readable format with the given TimeZone.
|
@NonNull
public static java.lang.String formatTime(@NonNull
java.util.Date date,
@NonNull
java.util.TimeZone timeZone)
date - the Date to format.timeZone - the TimeZone to format with.@NonNull
public static java.lang.String formatTime(@NonNull
java.util.Date date)
date - the Date to format.