import time


def get_ttl_hash(seconds: int = 3600):
    """
    Return the same value withing [0 to seconds] time period.

    :param seconds: maximum time to value update.
    :return: value.
    """
    return round(time.time() / seconds)