new EMLTemporalCoverage()
- Source:
Extends
Methods
isEmpty() → {boolean}
Checks if this model has no values set on it
- Source:
Returns:
-
Type
-
boolean
isGreaterDate(beginDate, endDate) → {boolean}
This function checks whether the begin date is greater than the end date.
Parameters:
| Name |
Type |
Description |
beginDate |
string
|
the begin date string |
endDate |
string
|
the end date string |
- Source:
Returns:
-
Type
-
boolean
isGreaterTime(begin, end, dateDifferenceSeconds) → {boolean}
Check whether the begin time is later than the end time.
Parameters:
| Name |
Type |
Description |
begin |
object
|
Begin time returned by EMLUtilities.parseTime |
end |
object
|
End time returned by EMLUtilities.parseTime |
dateDifferenceSeconds |
number
|
Begin date minus end date, in
seconds. Use 0 when comparing clock times without a date difference |
- Source:
Returns:
True if the begin time is later; equal times return
false
-
Type
-
boolean
Check an EML time and return a message the editor can display.
Parameters:
| Name |
Type |
Description |
time |
string
|
Time text to check |
- Source:
Returns:
True for a valid xs:time value, or an error
message
-
Type
-
boolean
|
string