Class TimeRange
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
- Hour of the end of the range
|
|
- Hour of the beginning of the range
|
|
- Minute of the end of the range
|
|
- Minute of the beginning of the range
|
Method Attributes | Method Name and Description |
---|---|
Return the total minutes number for the start of range
|
|
Return the total minutes number for the end of range
|
|
parseHourStr(start, end)
Initialise with start time and end time in format HHmm
|
|
parseTotalMinInt(start, end)
Initialise with start time and end time in total minutes since midnight
|
Field Detail
{number}
HourEnd
- Hour of the end of the range
{number}
HourStart
- Hour of the beginning of the range
{number}
MinuteEnd
- Minute of the end of the range
{number}
MinuteStart
- Minute of the beginning of the range
Method Detail
{number}
GetTotalMinuteBegin()
Return the total minutes number for the start of range
- Returns:
- {number} - the total minutes number for the start of range
{number}
GetTotalMinuteEnd()
Return the total minutes number for the end of range
- Returns:
- {number} - the total minutes number for the end of range
parseHourStr(start, end)
Initialise with start time and end time in format HHmm
- Parameters:
- {string} start
- - start time in format HHmm
- {string} end
- - end time in format HHmm
parseTotalMinInt(start, end)
Initialise with start time and end time in total minutes since midnight
- Parameters:
- {number} start
- - start time
- {number} end
- - end time