public class TimeField extends Field
Field.Type
Modifier and Type | Field and Description |
---|---|
static String |
FORMAT
The time format used by time fields, compatible with SimpleDateFormat.
|
Constructor and Description |
---|
TimeField(String name)
Creates a new TimeField with the given name.
|
Modifier and Type | Method and Description |
---|---|
static String |
format(Date time)
Converts the given time into a string which follows the format used by
time fields.
|
static Date |
parse(String timeString)
Parses the given string into a corresponding time.
|
getName, getOptions, getType, setName, setOptions, setType
public static final String FORMAT
public TimeField(String name)
name
- The unique name to associate with this field.public static Date parse(String timeString) throws ParseException
timeString
- The time string to parse, which may be null.ParseException
- If the given time string does not conform to the standard format
used by time fields.Copyright © 2016. All rights reserved.