import math


def format_played(mins: int, *, suffix: bool = False) -> str:
    """
    Converts A Bungie's total played time in minutes
    to a a readable time.
    """
    hrs = math.floor(mins // 60)
    seconds = math.floor(mins % 60)
    return f"{hrs} hours{' and' if suffix else ''} {seconds} seconds."