Groovy Documentation

griffon.plugins.jodatime.formatters
[Java] Class DateTimeFormatter

java.lang.Object
  griffon.core.resources.formatters.AbstractFormatter
      griffon.plugins.jodatime.formatters.DateTimeFormatter

public class DateTimeFormatter
extends AbstractFormatter

Authors:
Andres Almiray


Nested Class Summary
enum DateTimeFormatter.Pattern

 
Field Summary
private org.joda.time.format.DateTimeFormatter dateTimeFormatter

 
Constructor Summary
DateTimeFormatter()

DateTimeFormatter(String pattern)

DateTimeFormatter(DateTimeFormatter.Pattern pattern)

 
Method Summary
String format(org.joda.time.DateTime dateTime)

org.joda.time.DateTime parse(String str)

DateTimeFormatter valueOf(String name)

Returns the enum constant of this type with the specified name.

DateTimeFormatter[] values()

Returns an array containing the constants of this enum type, in the order they are declared.

 
Methods inherited from class AbstractFormatter
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll, format, parse
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

dateTimeFormatter

private final org.joda.time.format.DateTimeFormatter dateTimeFormatter


 
Constructor Detail

DateTimeFormatter

public DateTimeFormatter()


DateTimeFormatter

public DateTimeFormatter(String pattern)


DateTimeFormatter

public DateTimeFormatter(DateTimeFormatter.Pattern pattern)


 
Method Detail

format

public String format(org.joda.time.DateTime dateTime)


parse

public org.joda.time.DateTime parse(String str)


valueOf

DateTimeFormatter valueOf(String name)
Returns the enum constant of this type with the specified name.


values

DateTimeFormatter[] values()
Returns an array containing the constants of this enum type, in the order they are declared.


 

Groovy Documentation