MCPcopy
hub / github.com/AstrBotDevs/AstrBot / now

Method now

tests/unit/test_astr_main_agent.py:153–156  ·  view source on GitHub ↗
(cls, tz=None)

Source from the content-addressed store, hash-verified

151 class FixedDateTime(datetime.datetime):
152 @classmethod
153 def now(cls, tz=None):
154 if tz:
155 return fixed_now.astimezone(tz)
156 return fixed_now
157
158 with patch("astrbot.core.astr_main_agent.datetime.datetime", FixedDateTime):
159 ama._append_system_reminders(

Callers 15

_append_system_remindersFunction · 0.80
BtFunction · 0.80
_run_jobMethod · 0.80
KnowledgeBaseClass · 0.80
KBDocumentClass · 0.80
KBMediaClass · 0.80
export_allMethod · 0.80
_generate_manifestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected