Time Zone
final class searx.plugins.time_zone.SXNGPlugin(plg_cfg: PluginCfg)[source] : Plugin to display the current time at different timezones (usually the query city).
id: [str](https://docs.python.org/3/builtins/stdtypes.html#str) = 'time\_zone'
: The ID (suffix) in the HTML form.
keywords: [list](https://docs.python.org/3/builtins/stdtypes.html#list)[[str](https://docs.python.org/3/builtins/stdtypes.html#str)] = ['time', 'timezone', 'now', 'clock', 'timezones']
: Keywords in the search query that activate the plugin. The *keyword* is
the first word in a search query. If a plugin should be executed regardless
of the search query, the list of keywords should be empty (which is also the
default in the base class for Plugins).
post\_search(*request: [SXNG\_Request](https://docs.searxng.org/dev/extended_types.html#searx.extended_types.SXNG_Request)*, *search: [SearchWithPlugins](https://docs.searxng.org/src/searx.search.html#searx.search.SearchWithPlugins)*) → [EngineResults](https://docs.searxng.org/dev/engines/index.html#searx.result_types.EngineResults)[[source]](https://docs.searxng.org/_modules/searx/plugins/time_zone.html#SXNGPlugin.post_search)
: The plugin uses the [`searx.weather.GeoLocation`](https://docs.searxng.org/src/searx.weather.html#searx.weather.GeoLocation) class, which
is already implemented in the context of weather forecasts, to determine
the time zone. The [`searx.weather.DateTime`](https://docs.searxng.org/src/searx.weather.html#searx.weather.DateTime) class is used for
the localized display of date and time.
Copyright © SearXNG team
Made with Furo
