mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +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)
 |