The interview problem

Practice prompt

A customer's daily report runs twice or not at all around clock changes. Define a reliable scheduling contract.

Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.

1. Scope and worked approach

Assume the customer requests a local civil time in a named time zone, not a fixed UTC offset. Agree what happens when the local time is nonexistent or repeated: skip, shift or choose one occurrence. Store the schedule definition and timezone database version, and assign an execution identity based on the intended business date and policy. Make delivery idempotent independently of scheduler retries.

2. Trace the design or derivation

Define civil recurrence
  → resolve timezone ambiguity
  → create business execution ID
  → run
  → deduplicate delivery

Ask the customer to choose examples on the next clock-transition dates and sign off on the intended occurrences. The acceptance artifact is a list of local times, corresponding UTC instants and skip/shift decisions. This exposes ambiguity before production rather than leaving a library default to become the business policy.

3. Calculate the example

A nominal 02:30 local job may have no occurrence on a spring-forward day in a zone that jumps from 02:00 to 03:00. Adding exactly 24 hours to yesterday's UTC instant does not necessarily preserve 02:30 local time.

4. Failure cases and trade-offs

Time-zone rules can change after a schedule is created. Precomputing years of UTC timestamps can freeze obsolete assumptions. Local-time scheduling meets business expectations but needs explicit ambiguity rules; UTC scheduling is simpler when the customer accepts changing local time.

5. Validation, follow-ups and self-review

Test both transition directions, timezone-rule updates and replayed executions. Follow-up: what defines the business date for an overnight report? Self-review: distinguish recurrence policy, clock time and delivery idempotency.

Sources and related practice

Technical reference: www.w3.org — Civil time, offsets and changing time-zone rules.

Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.

Continue with Design a distributed job scheduler; Agree on business-hour deadlines across time zones.

Continue your preparation

Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.