Sujet : Re: Timezone in HH:MM Format
De : rambiusparkisanius (at) *nospam* gmail.com (Ivan \"Rambius\" Ivanov)
Groupes : comp.lang.pythonDate : 19. Jun 2024, 04:15:25
Autres entêtes
Message-ID : <mailman.158.1718763340.2909.python-list@python.org>
References : 1 2 3 4
Thank you all for your responses!
On Tue, Jun 18, 2024 at 9:54 PM Jon Ribbens via Python-list
<
python-list@python.org> wrote:
>
datetime.now(ZoneInfo("America/New_York")).isoformat()
Both .isoformat() and "%:z" work.
-- Tangra Mega Rock: http://www.radiotangra.com