Skip to content
UPEEC

zoneinfo

IANA time zones built in (3.9+), e.g. Asia/Kolkata.

Easy
Comments 0
from datetime import datetime
from zoneinfo import ZoneInfo
datetime.now(ZoneInfo("Asia/Kolkata"))

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.