def java_ts_to_secs(java_ts):
    """
    Convert java timestamp into unix timestamp.

    :param java_ts: java timestamp in milliseconds.
    :type java_ts: int

    :return: Timestamp in seconds.
    :rtype: int
    """
    return java_ts / 1000