Skip to content

Commit 6a64c48

Browse files
niemelaeldering
authored andcommitted
Add removed intervals to state
1 parent 05c1c0a commit 6a64c48

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Contest_API.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,10 @@ absolute timestamps.
230230
containing human-readable time durations, given in a slight modification of
231231
the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended time format:
232232
`(-)?(h)*h:mm:ss(.uuu)?`
233+
- Time intervals (type **`INTERVAL`** in the specification) are strings
234+
containing human-readable time intervals, given in
235+
[ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) "start and end" format with
236+
a forward slash interval designator.
233237
- Identifiers (type **`ID`** in the specification) are given as string
234238
consisting of characters `[a-zA-Z0-9_.-]` of length at most 36 and not
235239
starting with a `-` (dash) or `.` (dot) or ending with a `.` (dot). IDs are
@@ -1465,6 +1469,7 @@ Properties of state objects:
14651469
| thawed | TIME ? | Time when the scoreboard was thawed (that is, unfrozen again), or `null` if the scoreboard has not been thawed. Required iff `scoreboard_freeze_duration` is present in the [contest](#contests) endpoint. Must not be set if frozen is `null`.
14661470
| finalized | TIME ? | Time when the results were finalized, or `null` if results have not been finalized. Must not be set if ended is `null`.
14671471
| end\_of\_updates | TIME ? | Time after last update to the contest occurred, or `null` if more updates are still to come. Setting this to non-`null` must be the very last change in the contest.
1472+
| removed\_intervals | array of INTERVAL ? | Array of [removed time intervals](ccs_system_requirements#removing-time-intervals).
14681473

14691474
These state changes must occur in the order listed in the table above,
14701475
as far as they do occur, except that `thawed` and `finalized` may occur
@@ -1497,6 +1502,10 @@ Returned data:
14971502
"thawed": null,
14981503
"finalized": null,
14991504
"end_of_updates": null
1505+
"removed_intervals": [
1506+
"2014-06-25T10:30:00+01/10:45:00",
1507+
"2014-06-25T10:50:00+01/10:55:00"
1508+
]
15001509
}
15011510
```
15021511

0 commit comments

Comments
 (0)