docs.searxng.org
· Extracted in 174 ms
Time Zone - SearXNG Documentation (2026.12.6+8db8dcca1) Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode
Source: https://docs.searxng.org/dev/plugins/time_zone.html
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 = 'time_zone'
The ID (suffix) in the HTML form.
-
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. The searx.weather.DateTime class is used for
the localized display of date and time.
|
|