def duration_s(coordinate1, coordinate2):
    """
    Return the duration in seconds between two coordinate records.
    """
    return int((coordinate2.timestamp_UTC - coordinate1.timestamp_UTC).
        total_seconds())
