org.jsmpp.util
Interface TimeFormatter

All Known Implementing Classes:
AbsoluteTimeFormatter, RelativeTimeFormatter

public interface TimeFormatter

This provide time formatter functionality from a type to a String representation of date that can be recognized based on SMPP protocol.

Author:
uudashr

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.
 

Method Detail

format

java.lang.String format(java.util.Calendar calendar)
Format the date to String representation.

Parameters:
calendar - is the calendar to format.
Returns:
the formatted date or null if the date is null.

format

java.lang.String format(java.util.Date date)
Format the date to String representation.

Parameters:
date - is the date to format.
Returns:
the formatted date or null if the date is null.