mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
11 lines
196 B
Python
11 lines
196 B
Python
|
|
from typing import List
|
|
|
|
import pytz
|
|
|
|
def get_all_timezones() -> List[str]:
|
|
return sorted(pytz.all_timezones)
|
|
|
|
def get_timezone(tz: str) -> pytz.datetime.tzinfo:
|
|
return pytz.timezone(tz)
|