public class HourHolder extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
FORMAT_12 |
static String |
FORMAT_24 |
Constructor and Description |
---|
HourHolder(int hour,
int minute,
String amPm)
Deprecated.
|
HourHolder(String startTime,
String format)
parse the startTime string by the format, and create an HourHolder object that represents the
hour of the day
|
Modifier and Type | Method and Description |
---|---|
int |
compare(HourHolder h2) |
String |
getAmPm() |
String |
getFormat() |
int |
getHour() |
int |
getHourOfDay() |
int |
getMinute() |
boolean |
isEmpty() |
String |
toString() |
String |
toString(String hourFormat) |
public static final String FORMAT_24
public static final String FORMAT_12
@Deprecated public HourHolder(int hour, int minute, String amPm)
public HourHolder(String startTime, String format) throws Exception
startTime
- if the startTime is an emty string, return an empty hourHolder (HourHolder(0,0,""))Exception
public int getHour()
public int getMinute()
public String getAmPm()
public String getFormat()
public boolean isEmpty()
public String toString(String hourFormat) throws ParseException
ParseException
public int getHourOfDay()
public int compare(HourHolder h2)
h2
- Documentation Feedback
Copyright 2011 - 2023 Micro Focus or one of its affiliates.