public class DefaultTimeFormatter extends Object implements TimeFormatter
Constructor and Description |
---|
DefaultTimeFormatter()
Constructor for a mode without a "T" between date and time.
|
DefaultTimeFormatter(boolean withTandZ)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
format(TimeParts tp)
Generate a string representing the time in the time parts object.
|
public DefaultTimeFormatter(boolean withTandZ)
withTandZ
- if true insert a "T" between date and time and append a "Z" for UTCpublic DefaultTimeFormatter()
public String format(TimeParts tp)
format
in interface TimeFormatter
tp
- a non-null time parts objectCopyright © 2017. All rights reserved.