Class Info |
|---|
public class TimeOfWeek Represents a time point on a day of the week. |
Qualifier and Type |
Method Name and Description |
|---|---|
static TimeOfWeek |
newInstance(int day, String time) Creates an instance of the TimeOfWeek class. |
int |
getDay() Obtains the day of the week. |
String |
getTime() Obtains the time point on a day. |
Method |
|---|
public static TimeOfWeek newInstance(int day, String time) Creates an instance of the TimeOfWeek class. |
Parameters
Name |
Description |
|---|---|
day |
|
time |
24-hour time point on a day, in hhmm format. The value ranges from 0000 to 2359. |
Returns
Type |
Parameter desc |
|---|---|
TimeOfWeek |
TimeOfWeek object. |