public class AbsoluteTimeFormatter extends Object implements TimeFormatter
TimeFormatter implementation referred to
SMPP Protocol Specification v3.4 point 7.1.1.| Constructor and Description |
|---|
AbsoluteTimeFormatter() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(Calendar calendar)
Format the date to
String representation. |
String |
format(Date date)
Format the date to
String representation. |
static String |
format(Integer year,
Integer month,
Integer day,
Integer hour,
Integer minute,
Integer second,
int tenthsOfSecond,
int timeDiff,
Character sign) |
public String format(Calendar calendar)
TimeFormatterString representation.format in interface TimeFormattercalendar - is the calendar to format.null if the date is null.public String format(Date date)
TimeFormatterString representation.format in interface TimeFormatterdate - is the date to format.null if the date is null.