|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jsmpp.util.RelativeTimeFormatter
public class RelativeTimeFormatter
Relative time formatter is TimeFormatter
implementation referred to
SMPP Protocol Specification v3.4 point 7.1.1.
Constructor Summary | |
---|---|
RelativeTimeFormatter()
Construct with default timezone. |
|
RelativeTimeFormatter(java.util.TimeZone timezone)
Construct with specified SMSC timezone. |
Method Summary | |
---|---|
java.lang.String |
format(java.util.Calendar calendar)
Format the date to String representation. |
java.lang.String |
format(java.util.Date date)
Format the date to String representation. |
static java.lang.String |
format(java.lang.Integer year,
java.lang.Integer month,
java.lang.Integer day,
java.lang.Integer hour,
java.lang.Integer minute,
java.lang.Integer second)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RelativeTimeFormatter()
public RelativeTimeFormatter(java.util.TimeZone timezone)
timezone
- is the SMSC timezone.Method Detail |
---|
public java.lang.String format(java.util.Calendar calendar)
TimeFormatter
String
representation.
format
in interface TimeFormatter
calendar
- is the calendar to format.
null
if the date
is null
.public java.lang.String format(java.util.Date date)
TimeFormatter
String
representation.
format
in interface TimeFormatter
date
- is the date to format.
null
if the date
is null
.public static final java.lang.String format(java.lang.Integer year, java.lang.Integer month, java.lang.Integer day, java.lang.Integer hour, java.lang.Integer minute, java.lang.Integer second)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |