openr/py/openr/cli/commands/fib.py [490:500]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def ip_key(ip: object):
    net = ipaddress.ip_network(ip)
    return (net.version, net.network_address, net.prefixlen)


def convertTime(intTime) -> str:
    formatted_time = datetime.datetime.fromtimestamp(intTime / 1000)
    timezone = pytz.timezone("US/Pacific")
    formatted_time = timezone.localize(formatted_time)
    formatted_time = formatted_time.strftime("%Y-%m-%d %H:%M:%S.%f %Z")
    return formatted_time
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



openr/py/openr/cli/commands/kvstore.py [1406:1416]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
def ip_key(ip: object):
    net = ipaddress.ip_network(ip)
    return (net.version, net.network_address, net.prefixlen)


def convertTime(intTime) -> str:
    formatted_time = datetime.datetime.fromtimestamp(intTime / 1000)
    timezone = pytz.timezone("US/Pacific")
    formatted_time = timezone.localize(formatted_time)
    formatted_time = formatted_time.strftime("%Y-%m-%d %H:%M:%S.%f %Z")
    return formatted_time
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



