from datetime import datetime


def format_timestamp(timestamp):
    date = datetime.fromtimestamp(timestamp)

    if date.date() == datetime.today().date():
        return date.strftime("%H:%M:%S")
    else:
        return date.strftime("%d/%m/%Y")

68f314b201397646f9cdf67f3bdf3d597972feba
<mask token>

<mask token>


def format_timestamp(timestamp):
    date = datetime.fromtimestamp(timestamp)
    if date.date() == datetime.today().date():
        return date.strftime('%H:%M:%S')
    else:
        return date.strftime('%d/%m/%Y')

from datetime import datetime


def format_timestamp(timestamp):
    date = datetime.fromtimestamp(timestamp)
    if date.date() == datetime.today().date():
        return date.strftime('%H:%M:%S')
    else:
        return date.strftime('%d/%m/%Y')

from datetime import datetime


def format_timestamp(timestamp):
    date = datetime.fromtimestamp(timestamp)

    if date.date() == datetime.today().date():
        return date.strftime("%H:%M:%S")
    else:
        return date.strftime("%d/%m/%Y")
