package at.procon.eventhub.esperpoc.service;

import java.time.Duration;
import java.time.OffsetDateTime;

record EsperResolvedShiftSpan(
        OffsetDateTime startedAt,
        OffsetDateTime endedAt,
        OffsetDateTime nextShiftStartedAt,
        long dailyRestingTimeSeconds
) {
    long durationSeconds() {
        return Duration.between(startedAt, endedAt).getSeconds();
    }
}
