str.format_time
Writes time t as text in timezone (default the exchange time zone). Pattern letters: yyyy / yy year, M / MM / MMM / MMMM month (1, 01, Jan, January), d / dd day, EEE / EEEE weekday (Mon, Monday), H / HH hour 0-23, h / hh hour 1-12, a AM or PM, m / mm minute, s / ss second, SSS milliseconds, Z offset (-0500). Text in single quotes is copied as it is. na time gives na.
str.format_time(time: int, format: string = "yyyy-MM-dd HH:mm", timezone: string = na) -> string
Parameters
timeint: A UTC time in milliseconds, like time or timenow; na gives na.formatstring: The pattern (default "yyyy-MM-dd HH:mm"); the letters are listed above.timezonestring: An IANA zone like "America/New_York" or an offset like "UTC+2"; an unknown zone stops the script with a runtime error (default: the exchange time zone).
Example
str.format_time(time, "EEE HH:mm", "America/New_York")