def in_between(now, start, end):
    """
    Determine if now is between an interval considering day overlap.
    """
    if start <= end:
        return start <= now < end
    # over midnight e.g., 23:30-00:15
    return start <= now or now < end