예제 #1
0
    def _format_dates(date: arrow.Arrow) -> list[str]:
        """
        Return a list of date strings formatted according to the discord timestamp styles.

        These are used in the description of each style in the dropdown
        """
        date = date.to('utc')
        formatted = [str(int(date.timestamp()))]
        formatted += [
            date.format(format[1]) for format in list(STYLES.values())[1:7]
        ]
        formatted.append(date.humanize())
        return formatted