package org.jsmpp.util;

import java.util.Calendar;
import java.util.Date;


/**
 * @author uudashr
 *
 */
public interface TimeFormatter {
    
    /**
     * Format the date to {@link String} representation.
     * 
     * @param calendar is the calendar to format.
     * @return the formatted date or <code>null</code> if the <code>date</code> is <code>null</code>.
     */
    String format(Calendar calendar);
    
    /**
     * Format the date to {@link String} representation.
     * 
     * @param date is the date to format.
     * @return the formatted date or <code>null</code> if the <code>date</code> is <code>null</code>.
     */
    String format(Date date);
}

@@ -74,16 +74,162 @@
 ;%0A%0A%0A/**%0A
+ * This provide time formatter functionality from a type to a String%0A * representation of date that can be recognized based on SMPP protocol.%0A * %0A
  * @auth
@@ -241,16 +241,17 @@
 dashr%0A *
+ 
 %0A */%0Apub

Update TimeFormatter documentation