Timezone in HH:MM Format

Ivan "Rambius" Ivanov rambiusparkisanius at gmail.com
Tue Jun 18 22:15:25 EDT 2024


Thank you all for your responses!

On Tue, Jun 18, 2024 at 9:54 PM Jon Ribbens via Python-list
<python-list at python.org> wrote:
>
> datetime.now(ZoneInfo("America/New_York")).isoformat()

Both .isoformat() and "%:z" work.


-- 
Tangra Mega Rock: http://www.radiotangra.com


More information about the Python-list mailing list