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).
- keywords: list[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, search: SearchWithPlugins) EngineResults [source]¶
The plugin uses the
searx.weather.GeoLocation
class, which is already implemented in the context of weather forecasts, to determine the time zone. Thesearx.weather.DateTime
class is used for the localized display of date and time.