import time


def validate_counter(counter):
    """
    Validates a counter ensuring it's in a sliding window.
    Window is +/- 12 hours (43200 seconds)
    """
    currentTime = int(time.time())
    return (currentTime-43200) <= counter <= (currentTime+43200)