from datetime import datetime
from pytz import timezone
import pytz


def unix_to_localtime(t, tz="US/Eastern"):
    """
    Convert unix timestamp to local time.
    """


    utc = pytz.utc
    tz = timezone(tz)

    timestamp = datetime.utcfromtimestamp(t)

    return(utc.localize(timestamp).astimezone(tz).strftime("%H:%M:%S"))