You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Contest_API.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -749,7 +749,7 @@ Properties of contest objects:
749
749
| name | string | Short display name of the contest.
750
750
| formal\_name | string ? | Full name of the contest. Defaults to value of `name`.
751
751
| start\_time | TIME ? | The scheduled start time of the contest, may be `null` if the start time is unknown or the countdown is paused.
752
-
| countdown\_pause\_time | RELTIME ? | The amount of seconds left when countdown to contest start is paused. At no time may both `start_time` and `countdown_pause_time` be non-`null`.
752
+
| countdown\_pause\_time | RELTIME ? | The amount of time left when the countdown to the contest start was paused, if the contest countdown is paused, otherwise `null`.
753
753
| duration | RELTIME | Length of the contest.
754
754
| scoreboard\_freeze\_duration | RELTIME ? | How long the scoreboard is frozen before the end of the contest. Defaults to `0:00:00`.
755
755
| scoreboard\_thaw\_time | TIME ? | The scheduled thaw time of the contest, may be `null` if the thaw time is unknown or not set.
@@ -759,11 +759,11 @@ Properties of contest objects:
759
759
| logo | array of FILE ? | Logo for this contest, intended to be an image with aspect ratio near 1:1. Only allowed mime types are image/\*.
760
760
| location | LOCATION ? | Location where the contest is held.
761
761
762
-
The expected/typical use of `countdown_pause_time` is that once a
763
-
`start_time` is defined and close, the countdown may be paused due to
764
-
unforeseen delays. In this case, `start_time`should be set to `null`
765
-
and `countdown_pause_time` to the number of seconds left to count down.
766
-
The `countdown_pause_time` may change to indicate approximate delay.
762
+
The typical use of `countdown_pause_time` is when a contest director wishes to pause the countdown to the start of a contest. For example, this may occur because of technical
763
+
issues or to make an announcement. When the contest countdown is paused, the value of `countdown_pause_time` should be set to the expected time remaining before the start of the contest after the pause is lifted.
764
+
If `countdown_pause_time` is set, then the `start_time`must be set to `null`, thereby, setting an undefined `start_time` (the `start_time` is undefined since
765
+
the length of the pause may be unknown).
766
+
The `countdown_pause_time` may be changed to indicate the approximate delay until the contest starts.
767
767
Countdown is resumed by setting a new `start_time` and resetting
0 commit comments