jodd.datetime.format
Interface JdtFormatter

All Known Implementing Classes:
AbstractFormatter, Iso8601JdtFormatter

public interface JdtFormatter

Date time formatter performs conversion both from and to string representation of time.

See Also:
AbstractFormatter

Method Summary
 java.lang.String convert(JDateTime jdt, java.lang.String format)
          Converts date time to a string using specified format.
 DateTimeStamp parse(java.lang.String value, java.lang.String format)
          Parses string given in specified format and extracts time information.
 

Method Detail

convert

java.lang.String convert(JDateTime jdt,
                         java.lang.String format)
Converts date time to a string using specified format.

Parameters:
jdt - JDateTime to read from
format - format
Returns:
formatted string with date time information

parse

DateTimeStamp parse(java.lang.String value,
                    java.lang.String format)
Parses string given in specified format and extracts time information. It returns a new instance of DateTimeStamp or null if error occurs.

Parameters:
value - string containing date time values
format - format
Returns:
DateTimeStamp instance with populated data


Copyright © 2003-2012 Jodd Team