mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 20:22:45 +00:00 
			
		
		
		
	LibTimeZone: Parse and generate time zone coordinate data
This commit is contained in:
		
							parent
							
								
									7b41a09540
								
							
						
					
					
						commit
						ea814a3ce6
					
				
					 4 changed files with 141 additions and 3 deletions
				
			
		|  | @ -183,4 +183,13 @@ Optional<Array<NamedOffset, 2>> get_named_time_zone_offsets(StringView time_zone | |||
|     return {}; | ||||
| } | ||||
| 
 | ||||
| Optional<Location> __attribute__((weak)) get_time_zone_location(TimeZone) { return {}; } | ||||
| 
 | ||||
| Optional<Location> get_time_zone_location(StringView time_zone) | ||||
| { | ||||
|     if (auto maybe_time_zone = time_zone_from_string(time_zone); maybe_time_zone.has_value()) | ||||
|         return get_time_zone_location(*maybe_time_zone); | ||||
|     return {}; | ||||
| } | ||||
| 
 | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Flynn
						Timothy Flynn