from datetime import datetime


def pretty_stamp(stamp):
    """Convert timestamp to verbose string (strip fractions of seconds)."""
    if stamp is None:
        return "n.a."
    return datetime.fromtimestamp(stamp).strftime("%Y-%m-%d %H:%M:%S")