.oO SearXNG Developer Documentation Oo.
|
Public Member Functions | |
__init__ (self, "PluginCfg" plg_cfg) | |
EngineResults | post_search (self, "SXNG_Request" request, "SearchWithPlugins" search) |
Public Member Functions inherited from searx.plugins._core.Plugin | |
None | __init__ (self, "PluginCfg" plg_cfg) |
int | __hash__ (self) |
__eq__ (self, typing.Any other) | |
bool | init (self, "flask.Flask" app) |
bool | pre_search (self, SXNG_Request request, "SearchWithPlugins" search) |
bool | on_result (self, SXNG_Request request, "SearchWithPlugins" search, Result result) |
Public Attributes | |
info |
Additional Inherited Members | |
Static Public Attributes inherited from searx.plugins._core.Plugin | |
str | id = "" |
typing | active .ClassVar[bool] |
list | keywords = [] |
logging | log .Logger |
str | fqn = "" |
Plugin to display the current time at different timezones (usually the query city).
Definition at line 22 of file time_zone.py.
searx.plugins.time_zone.SXNGPlugin.__init__ | ( | self, | |
"PluginCfg" | plg_cfg ) |
Definition at line 29 of file time_zone.py.
References __init__().
Referenced by __init__().
EngineResults searx.plugins.time_zone.SXNGPlugin.post_search | ( | self, | |
"SXNG_Request" | request, | ||
"SearchWithPlugins" | search ) |
The plugin uses the :py:obj:`searx.weather.GeoLocation` class, which is already implemented in the context of weather forecasts, to determine the time zone. The :py:obj:`searx.weather.DateTime` class is used for the localized display of date and time.
Reimplemented from searx.plugins._core.Plugin.
Definition at line 40 of file time_zone.py.
References searx.answerers._core.Answerer.keywords, searx.answerers._core.AnswererInfo.keywords, searx.answerers._core.ModuleAnswerer.keywords, searx.answerers.random.SXNGAnswerer.keywords, searx.answerers.statistics.SXNGAnswerer.keywords, searx.plugins._core.Plugin.keywords, and searx.plugins._core.PluginInfo.keywords.
searx.plugins.time_zone.SXNGPlugin.info |
Definition at line 32 of file time_zone.py.