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

Example

str.format_time(time, "EEE HH:mm", "America/New_York")